summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 98c4f35915a9cee876d5835a2d3971af03ed85d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM node:18 as build

WORKDIR /app
COPY package.json yarn.lock .

RUN yarn install --all
COPY . .
RUN yarn build


FROM busybox:1.36
RUN adduser -D static
WORKDIR /home/static
COPY --from=build /app/public .
CMD ["busybox", "httpd", "-f", "-v", "-p", "3333"]