main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
378 bytes
|
Line | |
---|
1 | FROM node:20 AS build
|
---|
2 | WORKDIR /app
|
---|
3 | COPY package.json package-lock.json ./
|
---|
4 | RUN npm install
|
---|
5 | COPY . ./
|
---|
6 | RUN npm run build
|
---|
7 | FROM nginx:stable-alpine
|
---|
8 | COPY --from=build /app/dist /usr/share/nginx/html
|
---|
9 | COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
---|
10 | COPY ./ssl_cert/fullchain.pem /etc/nginx/ssl/
|
---|
11 | COPY ./ssl_cert/privkey.pem /etc/nginx/ssl/
|
---|
12 | EXPOSE 80
|
---|
13 | CMD ["nginx", "-g", "daemon off;"]
|
---|
14 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.