From 00444b8eb4e08d1bc8978487933fa778c1442d1c Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 30 Apr 2023 17:17:39 -0300 Subject: [PATCH] Add Containerfile --- Containerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Containerfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..e3a5e57 --- /dev/null +++ b/Containerfile @@ -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" ] \ No newline at end of file