Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ WORKDIR /build

COPY pyproject.toml .

RUN pip install --no-cache-dir --prefix=/install .
RUN apk update --no-cache && apk upgrade --no-cache && \
pip install --no-cache-dir --prefix=/install .

COPY app.py .

Expand All @@ -18,6 +19,8 @@ COPY --from=builder /install /usr/local
WORKDIR /app
COPY app.py .

RUN apk update --no-cache && apk upgrade --no-cache

USER appuser

ENTRYPOINT ["python", "app.py"]
Loading