-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ghostry
committed
Jun 20, 2024
1 parent
4146bd0
commit 7c83bc6
Showing
1 changed file
with
3 additions
and
18 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,28 +1,13 @@ | ||
FROM ubuntu:bionic | ||
FROM ghostry/python-work:latest | ||
|
||
LABEL maintainer="Ghostry <[email protected]>" | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y software-properties-common \ | ||
&& add-apt-repository ppa:deadsnakes/ppa \ | ||
&& apt-get install -y git memcached mysql-client libpq-dev python-dev \ | ||
&& apt-get install -y python3-pip \ | ||
&& apt dist-upgrade -y \ | ||
&& apt-get install -y python3.8 \ | ||
&& apt clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip3 install pipenv | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ADD start.sh /start.sh | ||
ADD Pipfile /data/Pipfile | ||
|
||
RUN chmod +x /start.sh \ | ||
&& echo 'export LC_ALL=C.UTF-8;export LANG=C.UTF-8;umask 000;' >> /root/.bashrc \ | ||
&& cd /data \ | ||
RUN cd /data \ | ||
&& pipenv install | ||
|
||
WORKDIR /data | ||
|
||
VOLUME ["/data"] | ||
|
||
CMD ["/start.sh"] |