Skip to content

Commit

Permalink
Merge pull request #183 from Kuadrant/dockerbuild-issue
Browse files Browse the repository at this point in the history
Correct perms for dist folder, explicit copy & remove old .dockerignore
  • Loading branch information
openshift-merge-bot[bot] authored Dec 18, 2024
2 parents b9812f4 + bd0d87e commit 0568c56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN yarn config set network-concurrency 1 && \
yarn config set network-timeout 100000

RUN mkdir -p /var/cache/nginx /var/log/nginx /run && \
chmod -R 777 /var/cache/nginx /var/log/nginx /run
chmod -R 777 /var/cache/nginx /var/log/nginx /run /usr/share/nginx/html/

WORKDIR /usr/src/app

Expand All @@ -23,8 +23,15 @@ COPY . .

RUN yarn build

RUN cp -r dist /usr/share/nginx/html
COPY dist /usr/share/nginx/html

COPY entrypoint.sh /usr/share/nginx/html/entrypoint.sh

RUN test -f /usr/share/nginx/html/plugin-manifest.json && \
test -f /usr/share/nginx/html/plugin-entry.js && \
test -f /usr/share/nginx/html/entrypoint.sh && \
test -d /usr/share/nginx/html/locales && \
echo "All required files are present."

USER 1001
ENTRYPOINT ["/usr/share/nginx/html/entrypoint.sh"]

0 comments on commit 0568c56

Please sign in to comment.