Skip to content

Commit

Permalink
修改dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostry committed Jun 20, 2024
1 parent 4146bd0 commit 7c83bc6
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions Dockerfile.gpanel
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"]

0 comments on commit 7c83bc6

Please sign in to comment.