Skip to content

Commit

Permalink
Merge pull request #115 from nodeshift/snyk-fix-33a5ccd10fae198984e31…
Browse files Browse the repository at this point in the history
…7250f7fdf2b

[Snyk] Security upgrade nginx from 1.23.1-alpine to 1-alpine
  • Loading branch information
pacostas committed Jun 6, 2023
2 parents 582b771 + 0db78e9 commit 070d7f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
npm-debug.log
npm-debug.log
coverage
.nyc_output
4 changes: 4 additions & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
coverage
.nyc_output
3 changes: 1 addition & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
RUN npm install --silent
RUN npm install react-scripts -g --silent
COPY . /usr/src/app
RUN npm run build

### STAGE 2: Production Environment ###
FROM nginx:1.23.1-alpine
FROM nginx:1-alpine
COPY --from=build /usr/src/app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 070d7f4

Please sign in to comment.