forked from fetchai/agents-aea
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use python 3.11 for deployments - Remove unwanted dependencies
- Loading branch information
1 parent
43b725f
commit 5565c0e
Showing
1 changed file
with
11 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,19 @@ | ||
FROM ubuntu:22.04 | ||
FROM python:3.11-slim | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install sudo git curl -y | ||
|
||
RUN adduser --disabled-password --gecos '' ubuntu | ||
RUN adduser ubuntu sudo | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
RUN apt install -y python3.10 python3.10-dev python3-pip libffi-dev | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install pipenv | ||
|
||
# utils | ||
RUN apt install -y wget | ||
|
||
# golang | ||
RUN wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz && \ | ||
tar -xzvf go1.13.8.linux-amd64.tar.gz -C /usr/local && \ | ||
export PATH=$PATH:/usr/local/go/bin && echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && \ | ||
mkdir $HOME/go | ||
|
||
USER ubuntu | ||
|
||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
RUN apt update | ||
RUN apt install -y python3.11-dev python3-pip -y | ||
RUN apt autoremove | ||
RUN apt autoclean | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install "open-aea[all]==1.39.0.post1" open-aea-cli-ipfs==1.39.0.post1 | ||
|
||
COPY user-image/openssl.cnf /etc/ssl | ||
|
||
RUN echo 'PATH="$(python3.10 -m site --user-base)/bin:${PATH}"' >> ~/.bashrc | ||
RUN echo "alias pip=pip3" >> ~/.bashrc | ||
RUN echo "alias python=python3.10" >> ~/.bashrc | ||
WORKDIR /root | ||
|
||
ENTRYPOINT [ "/bin/bash"] | ||
ENTRYPOINT ["/bin/bash", "-c"] |