mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
20 lines
322 B
Text
20 lines
322 B
Text
|
FROM node:15-buster AS builder
|
||
|
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY package*.json ./
|
||
|
|
||
|
RUN yarn --no-cache
|
||
|
|
||
|
COPY . .
|
||
|
COPY .env.build .env
|
||
|
RUN yarn typecheck
|
||
|
RUN yarn build
|
||
|
RUN npm prune --production
|
||
|
|
||
|
FROM node:15-buster
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY --from=builder /usr/src/app .
|
||
|
RUN rm ./.env
|
||
|
|
||
|
EXPOSE 5000
|
||
|
CMD [ "yarn", "start:inject" ]
|