12
Dockerfile
12
Dockerfile
@@ -1,6 +1,12 @@
|
||||
FROM python:slim
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
EXPOSE 80
|
||||
COPY . /app
|
||||
|
||||
RUN apt-get update && apt-get install -y git gcc curl postgresql && \
|
||||
curl -sSL https://install.python-poetry.org | python - && \
|
||||
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \
|
||||
. ~/.bashrc && \
|
||||
poetry config virtualenvs.create false && \
|
||||
poetry install --no-dev
|
||||
|
||||
CMD ["python", "main.py"]
|
Reference in New Issue
Block a user