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__/
37
37
dict /
38
38
docker /
39
39
commitlint.config.js
40
+ .hadolint.yaml
41
+ celerybeat-schedule *
42
+ .mypy_cache
43
+ public
Original file line number Diff line number Diff line change 1
1
# base image
2
- FROM python:3.10.8-alpine as python-base
2
+ FROM python:3.10-slim as python-base
3
3
4
4
ENV PYTHONFAULTHANDLER=1 \
5
5
PYTHONHASHSEED=random \
@@ -12,22 +12,22 @@ ENV PATH="$VENV_PATH/bin:$PATH"
12
12
13
13
WORKDIR $APP_PATH
14
14
15
- RUN adduser -Ds /bin/bash sentry
15
+ RUN useradd -ms /bin/bash sentry
16
16
17
17
18
18
# Build
19
19
FROM python-base as builder-base
20
20
21
- SHELL ["/bin/ash " , "-o" , "pipefail" , "-c" ]
21
+ SHELL ["/bin/bash " , "-o" , "pipefail" , "-c" ]
22
22
23
23
ENV PIP_DEFAULT_TIMEOUT=100 \
24
24
PIP_DISABLE_PIP_VERSION_CHECK=1 \
25
25
PIP_NO_CACHE_DIR=1
26
26
27
27
# 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 -
31
31
32
32
RUN python -m venv "$VENV_PATH"
33
33
@@ -57,8 +57,6 @@ COPY --from=static-base /app/assets /usr/share/nginx/html
57
57
FROM python-base as production
58
58
COPY --from=builder-base $APP_PATH $APP_PATH
59
59
60
- COPY . $APP_PATH
61
-
62
60
RUN chmod u+rwx "$APP_PATH/manage.py"
63
61
64
62
USER sentry
You can’t perform that action at this time.
0 commit comments