-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
artur rocks
committed
Oct 21, 2024
1 parent
968eafb
commit 0399336
Showing
3 changed files
with
53 additions
and
26 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
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 |
---|---|---|
|
@@ -5,19 +5,19 @@ FROM node:14.5.0-stretch-slim as build | |
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
COPY ./web/frontend/package.json ./ | ||
COPY ./web/frontend/package-lock.json ./ | ||
COPY ./frontend/package.json ./ | ||
COPY ./frontend/package-lock.json ./ | ||
|
||
RUN npm ci | ||
RUN npm install [email protected] -g | ||
|
||
COPY ./web/frontend ./ | ||
COPY ./frontend ./ | ||
RUN npm run build | ||
|
||
|
||
FROM nginx:stable-alpine-slim | ||
COPY --from=build /app/build /usr/share/nginx/html | ||
COPY ./web/nginx/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 3000 | ||
CMD ["nginx", "-g", "daemon off;"] | ||
|