2024-06-17 15:40:34 +00:00
|
|
|
FROM alpine:3.20
|
|
|
|
|
|
|
|
ENV APP_ENV=/opt/venv
|
|
|
|
ENV PATH="${APP_ENV}/bin:$PATH"
|
|
|
|
|
|
|
|
RUN apk add --no-cache py3-pip uwsgi-python3 && \
|
2024-10-04 14:16:43 +00:00
|
|
|
python3 -m venv $APP_ENV
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
RUN $APP_ENV/bin/pip install --no-cache-dir pip && \
|
|
|
|
$APP_ENV/bin/pip install /app && \
|
2024-06-17 15:40:34 +00:00
|
|
|
adduser -S -D -H structables
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
EXPOSE 8002
|
|
|
|
|
|
|
|
USER structables
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|