This commit is contained in:
23
Dockerfile
23
Dockerfile
@@ -1,4 +1,21 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM baseImage
|
||||
LABEL site.mortons.author=""
|
||||
LABEL site.mortons.version="1.0"
|
||||
FROM node:lts-alpine
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||
# where available (npm@5+)
|
||||
COPY package*.json ./
|
||||
|
||||
# continuous integration for production
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 9000
|
||||
CMD [ "npm", "start" ]
|
||||
Reference in New Issue
Block a user