File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ __pycache__/
3737dict /
3838docker /
3939commitlint.config.js
40+ .hadolint.yaml
41+ celerybeat-schedule *
42+ .mypy_cache
43+ public
Original file line number Diff line number Diff line change 11# base image
2- FROM python:3.10.8-alpine as python-base
2+ FROM python:3.10-slim as python-base
33
44ENV PYTHONFAULTHANDLER=1 \
55 PYTHONHASHSEED=random \
@@ -12,22 +12,22 @@ ENV PATH="$VENV_PATH/bin:$PATH"
1212
1313WORKDIR $APP_PATH
1414
15- RUN adduser -Ds /bin/bash sentry
15+ RUN useradd -ms /bin/bash sentry
1616
1717
1818# Build
1919FROM python-base as builder-base
2020
21- SHELL ["/bin/ash " , "-o" , "pipefail" , "-c" ]
21+ SHELL ["/bin/bash " , "-o" , "pipefail" , "-c" ]
2222
2323ENV PIP_DEFAULT_TIMEOUT=100 \
2424 PIP_DISABLE_PIP_VERSION_CHECK=1 \
2525 PIP_NO_CACHE_DIR=1
2626
2727# get poetry
28- RUN apk update \
29- && apk add --update --no-cache curl gcc linux-headers build-base \
30- && curl -sSL https://install.python-poetry.org | python -
28+ RUN apt-get update && \
29+ apt-get install -y --no-install-recommends curl && \
30+ curl -sSL https://install.python-poetry.org | python -
3131
3232RUN python -m venv "$VENV_PATH"
3333
@@ -57,8 +57,6 @@ COPY --from=static-base /app/assets /usr/share/nginx/html
5757FROM python-base as production
5858COPY --from=builder-base $APP_PATH $APP_PATH
5959
60- COPY . $APP_PATH
61-
6260RUN chmod u+rwx "$APP_PATH/manage.py"
6361
6462USER sentry
You can’t perform that action at this time.
0 commit comments