diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8cbc790 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM node:lts-erbium + +ENV PORT 19080 + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Installing dependencies +COPY package*.json /usr/src/app/ +RUN npm install + +# Copying source files +COPY . /usr/src/app + +# Building app +RUN npm run build +EXPOSE 19080 + +# Running the app +CMD "npm" "start" \ No newline at end of file