From d2f9fad5b249cc3e529eaa83210a192632a8d83c Mon Sep 17 00:00:00 2001 From: Irkan Date: Thu, 17 Sep 2020 11:43:23 +0400 Subject: [PATCH] Fix: change node version to alpine I faced an issue building the docker image with the free tier server, the error was due to lack of free space (they might have changed how much space is allowed in the free tier? not sure) I fixed the issue by defining the node version as alpine. --- EB-Follow-Along-Docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EB-Follow-Along-Docker/Dockerfile b/EB-Follow-Along-Docker/Dockerfile index 390a44b..d043fd3 100644 --- a/EB-Follow-Along-Docker/Dockerfile +++ b/EB-Follow-Along-Docker/Dockerfile @@ -1,5 +1,5 @@ # we'll use 10 since its same as Amazon Linux 1 default node version -FROM node:10 +FROM node:10-alpine # where our app will be located in the image RUN mkdir -p /app WORKDIR /app @@ -7,4 +7,4 @@ WORKDIR /app COPY . . RUN npm install CMD [ "npm", "start" ] -EXPOSE 8080 \ No newline at end of file +EXPOSE 8080