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