Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Nov 17, 2021
1 parent 02918ca commit 09368b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM python:3-slim AS builder

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

ADD . /app
WORKDIR /app

COPY requirements.txt requirements.txt

COPY requirements.txt .
RUN pip install --target=/app -r requirements.txt

FROM gcr.io/distroless/python3-debian10
Expand Down

0 comments on commit 09368b1

Please sign in to comment.