forked from get-thriving/thrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 922 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (24 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.8.5
LABEL maintainer='horia141@gmail.com'
RUN apt-get update && \
apt-get install -y git=1:2.20.1-2+deb10u3 curl=7.64.0-4+deb10u2 netcat=1.10-41.1 --no-install-recommends && \
apt-get clean && \
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > get-poetry.py && \
python get-poetry.py && \
rm -rf /var/lib/apt/lists/*
ENV PATH="${PATH}:/root/.poetry/bin"
WORKDIR /jupiter
COPY pyproject.toml ./
COPY poetry.lock ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi
COPY LICENSE LICENSE
COPY README.md README.md
COPY migrations migrations
COPY jupiter jupiter
COPY jupiter/jupiter.py jupiter.py
COPY jupiter/migrator.py migrator.py
COPY Config.docker Config
# ENTRYPOINT ["python", "-m", "cProfile", "-s", "time", "jupiter/jupiter.py"]
WORKDIR /data
ENTRYPOINT ["python", "/jupiter/jupiter.py"]