From df5359fad91808c9108b8e699eedc0b7c083476a Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Mon, 11 May 2020 15:41:34 +0200 Subject: [PATCH] Create Dockerfile for server in production --- server/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/Dockerfile diff --git a/server/Dockerfile b/server/Dockerfile new file mode 100644 index 0000000..e553cf9 --- /dev/null +++ b/server/Dockerfile @@ -0,0 +1,13 @@ +FROM node:latest + +WORKDIR /usr/src/server + +COPY package*.json ./ + +RUN npm ci --only=production + +COPY . . + +CMD [ "node", "index.js" ] + +EXPOSE 5000