From 4ad2b47f5c45a4867104ac29892625c400fed183 Mon Sep 17 00:00:00 2001 From: Paul Munteanu Date: Sun, 23 May 2021 04:26:36 +0300 Subject: [PATCH 1/3] Remove redundant Dockerfile commands --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0d5ae68..61e47b60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM node:lts-alpine -RUN mkdir -p /usr/src/fosscord-api WORKDIR /usr/src/fosscord-api -COPY package.json /usr/src/fosscord-api +COPY . . RUN npm install -COPY . /usr/src/fosscord-api RUN npx patch-package CMD ["npm", "start"] \ No newline at end of file From a0746a12abd167eafd59046233dac803c4f4a3a8 Mon Sep 17 00:00:00 2001 From: Paul Munteanu Date: Sun, 23 May 2021 04:28:19 +0300 Subject: [PATCH 2/3] Add ports used by api in Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 61e47b60..3fbf9115 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,5 @@ WORKDIR /usr/src/fosscord-api COPY . . RUN npm install RUN npx patch-package +EXPOSE 3001 CMD ["npm", "start"] \ No newline at end of file From f1c4e805ed97de76b7032e2cec4f04cc2f44e66a Mon Sep 17 00:00:00 2001 From: Paul Munteanu Date: Sun, 23 May 2021 16:08:04 +0300 Subject: [PATCH 3/3] Undo mistake in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3fbf9115..1113978f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM node:lts-alpine WORKDIR /usr/src/fosscord-api -COPY . . +COPY package.json . RUN npm install RUN npx patch-package +COPY . . EXPOSE 3001 CMD ["npm", "start"] \ No newline at end of file