Skip to content
Snippets Groups Projects
Unverified Commit 7def975c authored by Mgr. Pavel Břoušek's avatar Mgr. Pavel Břoušek
Browse files

fix: move cleanup at the end

parent 839fe9e8
Branches
Tags
No related merge requests found
......@@ -23,16 +23,18 @@ RUN apt update -y && \
cd /app && \
git clone https://github.com/${TOKEN_PORTAL_ORIGIN}/simple-oidc-client-php.git token && \
cd token && \
if echo $TOKEN_PORTAL_VERSION | grep -q "^[0-9]"; then git checkout v${TOKEN_PORTAL_VERSION}; else git checkout ${TOKEN_PORTAL_VERSION}; fi && \
apt-get remove -y git unzip && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
if echo $TOKEN_PORTAL_VERSION | grep -q "^[0-9]"; then git checkout v${TOKEN_PORTAL_VERSION}; else git checkout ${TOKEN_PORTAL_VERSION}; fi
# install composer dependencies
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN cd /app/token && \
/usr/bin/composer install --no-dev && \
rm /usr/bin/composer
/usr/bin/composer install --no-dev --no-progress
# cleanup
RUN rm /usr/bin/composer && \
apt-get remove -y git unzip && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
EXPOSE 9000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment