sujoydev99 commited on
Commit
0212d59
·
1 Parent(s): 4ad88bf

redis added

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,11 +1,11 @@
1
  FROM node:18-alpine as builder
2
  RUN apk update --no-cache && apk add --no-cache git openssh bash alpine-sdk
3
- WORKDIR /srv
4
  COPY package.json yarn.lock ./
5
  RUN yarn install --mode=skip-build
6
  COPY . .
7
 
8
  FROM node:18-alpine
9
- WORKDIR /srv
10
- COPY --from=builder /srv .
11
- CMD ["node" ,"/srv/index.js"]
 
1
  FROM node:18-alpine as builder
2
  RUN apk update --no-cache && apk add --no-cache git openssh bash alpine-sdk
3
+ WORKDIR /code
4
  COPY package.json yarn.lock ./
5
  RUN yarn install --mode=skip-build
6
  COPY . .
7
 
8
  FROM node:18-alpine
9
+ WORKDIR /code
10
+ COPY --from=builder /code .
11
+ CMD ["node" ,"/code/index.js"]