update Dockerfile

This commit is contained in:
dmunozv04
2022-02-02 20:06:10 +01:00
parent 3f08fe1c0a
commit ae185b311c

View File

@@ -1,7 +1,6 @@
# syntax=docker/dockerfile:1
#TEMP IMAGE
FROM python:3.10-alpine as builder
FROM python:3.10-alpine
WORKDIR /app
@@ -10,20 +9,7 @@ RUN apk update && \
COPY requirements.txt .
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt
#FINAL IMAGE
FROM python:3.10-alpine
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /app
COPY --from=builder /app/wheels /wheels
COPY --from=builder /app/requirements.txt .
RUN pip install --no-cache /wheels/*
RUN pip3 install -r requirements.txt
COPY . .