proski_neki/Dockerfile

16 lines
227 B
Docker
Raw Permalink Normal View History

2022-09-20 10:54:35 +02:00
FROM node:14-alpine AS development
# Add a work directory
WORKDIR /app
# Cache and Install dependencies
COPY package.json .
RUN yarn install
COPY index.js .
# Expose port
EXPOSE 1234
# Start the app
CMD [ "yarn", "start"]