Skip to content

Commit

Permalink
Dockerimage: Release is now using bzip in stead of gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Sep 13, 2024
1 parent bfbd171 commit 9779b66
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest
COPY ./*tar.gz /tmp/
RUN tar --strip-components=1 -xvzf /tmp/*tar.gz -C /var/www/html/ && \
rm -rf /tmp/*.tar.gz
ARG APP_VERSION
ARG GIT_SHA
ARG GIT_COMMIT_TIME
ENV OPENCONEXT_APP_VERSION=${APP_VERSION}
ENV OPENCONEXT_GIT_SHA=${GIT_SHA}
ENV OPENCONEXT_COMMIT_DATE=${GIT_COMMIT_TIME}

# Set the default workdir
WORKDIR /var/www/html
COPY *.tar.bz2 /tmp/
RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
rm -rf /tmp/*.tar.bz2

# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
Expand Down

0 comments on commit 9779b66

Please sign in to comment.