aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 94719c0071adfdbafc7cd7ac9a2588309a7cf4b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:19-bullseye as build

WORKDIR /due

RUN apt update -y && apt upgrade -y

COPY package.json ./

RUN yarn install

COPY ./ ./

RUN yarn run build

FROM node:19-bullseye

WORKDIR /due

COPY --from=build /due .

EXPOSE 3000

CMD ["node", "build"]