fix-reqs2
This commit is contained in:
parent
8a3aa1dae6
commit
aa5709c695
22
Dockerfile
22
Dockerfile
|
@ -1,18 +1,10 @@
|
||||||
FROM python:slim
|
FROM python:slim
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
|
||||||
ENV GIT_SSH_COMMAND "ssh -v"
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get update && apt-get install -y git build-essential
|
|
||||||
RUN pip install poetry
|
|
||||||
|
|
||||||
# Copy only requirements to cache them in docker layer
|
EXPOSE 8080
|
||||||
COPY pyproject.toml poetry.lock /app/
|
# ADD nginx.conf.sigil ./
|
||||||
|
COPY requirements.txt .
|
||||||
# Project initialization:
|
RUN apt update && apt install -y build-essential git
|
||||||
RUN poetry config virtualenvs.create false \
|
ENV GIT_SSH_COMMAND "ssh -v"
|
||||||
&& poetry install --no-interaction --no-ansi
|
RUN pip install -r requirements.txt
|
||||||
|
COPY . .
|
||||||
# Copy project files into the docker image
|
|
||||||
COPY . /app
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user