Files
www.prothmann.com/Dockerfile
Christian Anetzberger 63bab028f7 Fixed Dockerfile
2023-01-27 18:51:57 +01:00

22 lines
354 B
Docker

FROM node:16
# Create app directory
WORKDIR /app
ENV PORT 3001
EXPOSE 3001
# 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 ./
ADD node_addons ./node_addons
RUN yarn install
# Bundle app source
COPY . .
RUN yarn build
CMD [ "yarn", "start" ]