-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from bounswe/feature/MIL-4
Last changes for deployment.
- Loading branch information
Showing
5 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
FROM node:16-alpine AS builder | ||
|
||
ENV NODE_ENV production | ||
|
||
# build step | ||
FROM node:16.13.2-alpine as build | ||
WORKDIR /app | ||
|
||
COPY ./package.json ./ | ||
|
||
COPY package.json ./ | ||
RUN npm install | ||
|
||
COPY . . | ||
|
||
COPY . ./ | ||
RUN npm run build | ||
|
||
# Fetching the latest nginx image | ||
FROM nginx | ||
|
||
# Copying built assets from builder | ||
COPY --from=builder /app/build /usr/share/nginx/html | ||
|
||
# Copying our nginx.conf | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
# release step | ||
FROM nginx:1.21.5-alpine as release | ||
COPY --from=build /app/build /usr/share/nginx/html/ | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters