Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joozero committed Jan 23, 2024
1 parent 218e715 commit 03cfebd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions application-code/ecsdemo-cicd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM public.ecr.aws/docker/library/alpine:latest

RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
pip3 install --upgrade pip
RUN apk add --no-cache python3 py3-pip && \
python3 -m venv /path/to/venv

ENV PATH="/path/to/venv/bin:$PATH"

WORKDIR /app
ADD . /app

RUN pip3 install -r requirements.txt

CMD ["python", "app.py"]
CMD ["python3", "app.py"]

0 comments on commit 03cfebd

Please sign in to comment.