Osselbot/Dockerfile

18 lines
457 B
Docker
Raw Normal View History

2020-05-15 07:39:49 +00:00
# Use the official image as a parent image.
FROM node:current-slim
# Set the working directory.
WORKDIR ./DOCKER
# Copy the file from your host to your current location.
COPY ./package.json .
2020-05-15 08:19:36 +00:00
COPY ./package-lock.json .
2020-05-15 07:39:49 +00:00
# Run the command inside your image filesystem.
RUN npm install
# Run the specified command within the container.
CMD [ "npm", "start" ]
# Copy the rest of your app's source code from your host to your image filesystem.
2020-05-15 08:19:36 +00:00
COPY ./src/ .