File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ cypress
2
+ node_modules
Original file line number Diff line number Diff line change
1
+ # Stage 1
2
+ FROM node:15-alpine as build
3
+ WORKDIR /app
4
+ ENV PATH /app/node_modules/.bin:$PATH
5
+ COPY package.json ./
6
+ COPY package-lock.json ./
7
+ RUN npm install
8
+ COPY . ./
9
+ RUN npm run build
10
+
11
+ # Stage 2
12
+ FROM nginx:stable-alpine
13
+ COPY --from=build /app/build /usr/share/nginx/html
14
+ COPY nginx.conf /etc/nginx/conf.d/default.conf
15
+ EXPOSE 80
16
+ CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change
1
+ server {
2
+
3
+ listen 80 ;
4
+
5
+ location / {
6
+ root /usr/share/nginx/html;
7
+ index index.html index.htm;
8
+ try_files $uri $uri / /index.html;
9
+ }
10
+
11
+ error_page 500 502 503 504 /50x.html;
12
+
13
+ location = /50x.html {
14
+ root /usr/share/nginx/html;
15
+ }
16
+
17
+ }
You can’t perform that action at this time.
0 commit comments