File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ ENV LC_ALL=en_US.UTF-8 \
4444 LANGUAGE=en_US:en
4545
4646# Build stage
47- FROM base as builder
47+ FROM base
4848
4949ARG PRETALX_VERSION
50+ ARG PRETALX_UID
51+ ARG PRETALX_GID
5052
5153# Clone target pretalx repository
5254WORKDIR /build
@@ -62,24 +64,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6264# Install wheel + extras
6365RUN --mount=type=cache,target=/root/.cache/pip \
6466 python -m pip install dist/pretalx*whl
65- # Final stage
66- FROM base
67-
68- ARG PRETALX_UID
69- ARG PRETALX_GID
70-
71-
72- RUN pip install packaging
7367
7468# Create pretalx user
7569RUN groupadd -f -g ${PRETALX_GID} pretalx && \
7670 useradd -u ${PRETALX_UID} -g ${PRETALX_GID} -m -d /pretalx -s /bin/bash pretalx && \
7771 mkdir -p /data/media /data/static /data/logs /public/media /public/static && \
7872 chown -R pretalx:pretalx /data /public
7973
80- # Copy installed dependencies and application
81- COPY --from=builder /install /usr/local
82-
8374# Create deployment directory
8475RUN mkdir -p /etc/pretalx
8576
You can’t perform that action at this time.
0 commit comments