Add Containerfile
This commit is contained in:
parent
7ac7bc7737
commit
00444b8eb4
1 changed files with 20 additions and 0 deletions
20
Containerfile
Normal file
20
Containerfile
Normal 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" ]
|
Loading…
Reference in a new issue