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