kevin1207 commited on
Commit
00a6ec2
·
verified ·
1 Parent(s): 185237b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -11,13 +11,15 @@ RUN sudo find / \
11
  -path /usr -prune -o \
12
  -exec chmod 777 {} \;
13
 
 
 
 
14
  # Set environment variables for non-interactive npm installs
15
  ENV NPM_CONFIG_LOGLEVEL warn
16
  ENV CI true
17
  WORKDIR /app
18
 
19
- RUN git clone https://github.com/CorentinTh/it-tools.git
20
- RUN cd it-tools
21
  COPY package.json pnpm-lock.yaml ./
22
  RUN npm install -g pnpm && pnpm i --frozen-lockfile
23
  COPY . .
@@ -26,7 +28,7 @@ RUN pnpm build
26
  # production stage
27
  FROM nginx:stable-alpine AS production-stage
28
  COPY --from=build-stage /app/dist /usr/share/nginx/html
29
- COPY nginx.conf /etc/nginx/conf.d/default.conf
30
  EXPOSE 80
31
  CMD ["nginx", "-g", "daemon off;"]
32
 
 
11
  -path /usr -prune -o \
12
  -exec chmod 777 {} \;
13
 
14
+ RUN git clone https://github.com/CorentinTh/it-tools.git
15
+ RUN cd it-tools
16
+
17
  # Set environment variables for non-interactive npm installs
18
  ENV NPM_CONFIG_LOGLEVEL warn
19
  ENV CI true
20
  WORKDIR /app
21
 
22
+
 
23
  COPY package.json pnpm-lock.yaml ./
24
  RUN npm install -g pnpm && pnpm i --frozen-lockfile
25
  COPY . .
 
28
  # production stage
29
  FROM nginx:stable-alpine AS production-stage
30
  COPY --from=build-stage /app/dist /usr/share/nginx/html
31
+ COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
32
  EXPOSE 80
33
  CMD ["nginx", "-g", "daemon off;"]
34