github.com/hazelops/ize@v1.1.12-0.20230915191306-97d7c0e48f11/examples/ecs-apps-monorepo/apps/squibby/Dockerfile (about)

     1  FROM python:3.8-alpine
     2  
     3  ARG PROJECT_PATH=.
     4  ENV \
     5  APP_HOME=/app  \
     6  PORT=3000 \
     7  APP_NAME=Default \
     8  EXAMPLE_API_KEY=Default \
     9  EXAMPLE_SECRET=Default
    10  
    11  WORKDIR $APP_HOME
    12  
    13  RUN set -ex && \
    14      apk add --no-cache \
    15      python3 \
    16      bash \
    17      curl \
    18    && \
    19      ln -s /usr/bin/python3 /usr/bin/python
    20  
    21  #Copy files and pipenv
    22  COPY ${PROJECT_PATH}/app.py  ./
    23  COPY ${PROJECT_PATH}/Pipfile* ./
    24  
    25  RUN apk add gcc musl-dev linux-headers
    26  RUN python3 -m pip install pipenv ddtrace
    27  
    28  RUN  pipenv install --deploy --system
    29  
    30  CMD ["ddtrace-run", "python", "app.py"]
    31  
    32  EXPOSE $PORT