This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-16 09:31:49 +00:00
|
|
|
FROM node:16.14.0-alpine
|
2021-09-17 14:10:54 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/app
|
|
|
|
|
|
|
|
# copy package configuration and install node modules
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
RUN yarn --frozen-lockfile
|
|
|
|
|
|
|
|
# copy over source files
|
|
|
|
COPY src src
|
|
|
|
COPY tsconfig.json ./
|
|
|
|
|
|
|
|
# build application
|
|
|
|
ENV NODE_ENV production
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
EXPOSE 3100
|
|
|
|
|
|
|
|
CMD ["yarn", "start"]
|