Skip to content
Snippets Groups Projects
Verified Commit ec160e45 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

small Dockerfile updates

parent fb57ae23
Branches
Tags
1 merge request!90include TRANSLATIONS_DIR as environment variable in the Docker image
Pipeline #84409 passed
......@@ -5,7 +5,6 @@ ARG ARTIFACT_VERSION
RUN apk add --no-cache gcc libc-dev libffi-dev && \
addgroup -S appgroup && adduser -S appuser -G appgroup -h /app
USER appuser
RUN pip install \
--pre \
......@@ -27,5 +26,6 @@ ENV TRANSLATIONS_DIR=/app/gso/translations/
COPY --chown=appuser:appgroup --chmod=755 entrypoint.sh /app/entrypoint.sh
USER appuser
EXPOSE 8080
ENTRYPOINT ["/app/entrypoint.sh"]
#!/bin/sh
set -o errexit
set -o nounset
# Run database migrations
cd gso || exit 1
cd /app/gso
mv migrations migrations_temp && \
PYTHONPATH=.. python main.py db init && \
rm -rf migrations && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment