DwightAI / Dockerfile
sujoydev99's picture
dockerfile added
5ed7076
raw
history blame
292 Bytes
FROM node:18-alpine as builder
RUN apk update --no-cache && apk add --no-cache git openssh bash alpine-sdk
WORKDIR /srv
COPY package.json yarn.lock ./
RUN yarn install --mode=skip-build
COPY . .
FROM node:18-alpine
WORKDIR /srv
COPY --from=builder /srv .
ENTRYPOINT ["node" ,"/srv/index.js"]