Initial commit
This commit is contained in:
commit
9277a804bb
18 changed files with 851 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM node:lts
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
COPY .npmrc ./
|
||||
COPY yarn.lock ./
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY ./src ./src
|
||||
COPY ./gulpfile.mjs ./
|
||||
COPY ./tsconfig.json ./
|
||||
|
||||
RUN yarn build
|
||||
|
||||
ARG NODE_ENV=production
|
||||
ENV NODE_ENV=$NODE_ENV
|
||||
|
||||
ARG PORT=3000
|
||||
ENV PORT=$PORT
|
||||
|
||||
EXPOSE $PORT
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue