Skip to content

Commit

Permalink
Merge pull request #199 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: fix permission issue
  • Loading branch information
ychung-mot authored Apr 22, 2024
2 parents 4e76aeb + 33e0334 commit 6e46266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ COPY nginx.conf /etc/nginx/nginx.conf
COPY ./docker-entrypoint.sh /_docker-entrypoint.sh
RUN chmod +x /_docker-entrypoint.sh

RUN mkdir -p /nginx/html && chmod -R a+rw /nginx
RUN cp -R /usr/share/nginx/html/* /nginx/html

EXPOSE 3001
ENV TZ America/Vancouver

Expand Down
3 changes: 0 additions & 3 deletions frontend/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ set -e

echo "hit entrypoint..."

# mkdir -p /nginx/html
cp -R /usr/share/nginx/html/* /nginx/html

target=/nginx/html/main.js
sed -i "s~__SSO_HOST__~$SSO_HOST~g" "$target"
sed -i "s~__ENV_NAME__~$ENV_NAME~g" "$target"
Expand Down

0 comments on commit 6e46266

Please sign in to comment.