From 1e64dfff9553284574146e154196743fbab0c271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Fri, 29 Sep 2023 22:07:34 +0200 Subject: [PATCH] dockerfile --- dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..2e2f7cb --- /dev/null +++ b/dockerfile @@ -0,0 +1,20 @@ +# Use Node 16 alpine as parent image +FROM node:16-alpine + +# Change the working directory on the Docker image to /app +WORKDIR /app + +# Copy package.json and package-lock.json to the /app directory +COPY package.json package-lock.json ./ + +# Install dependencies +RUN npm install + +# Copy the rest of project files into this image +COPY . . + +# Expose application port +# EXPOSE 3000 + +# Start the application +CMD npm start \ No newline at end of file