Add Containerfile

This commit is contained in:
Cat /dev/Nulo 2023-04-30 17:17:39 -03:00
parent 7ac7bc7737
commit 00444b8eb4

20
Containerfile Normal file
View file

@ -0,0 +1,20 @@
FROM alpine:3.17 as builder
RUN apk add --no-cache nodejs-current yarn
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV production
COPY . .
RUN yarn
FROM alpine:3.17
RUN apk add --no-cache nodejs-current yarn
COPY --from=builder /app /app
WORKDIR /app
ENV NODE_ENV production
ENV PORT 8080
CMD [ "yarn", "start" ]