Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Jun 16, 2024
1 parent c225f1b commit b0dba1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,21 @@ USER nobody
# * saas-api [api-runtime, build-python-private]
FROM api-runtime as saas-api

USER nobody

# Install GnuPG and import private key
RUN --mount=type=secret,id=sse_pgp_pkey \
apt-get update && apt-get install -y gnupg && \
gpg --import /run/secrets/sse_pgp_pkey && \
mv /root/.gnupg /app/; \
chown -R nobody /app/.gnupg

COPY --from=build-python-private --chown=nobody:nobody /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=build-python-private --chown=nobody:nobody /usr/local/bin /usr/local/bin
COPY --from=build-python-private /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=build-python-private /usr/local/bin /usr/local/bin

RUN python manage.py collectstatic --no-input
RUN touch ./SAAS_DEPLOYMENT

USER nobody

# * oss-api [build-python]
FROM api-runtime as oss-api

Expand Down

0 comments on commit b0dba1b

Please sign in to comment.