From f25d00522e5c822e79944beff7fe97ab134e7d4f Mon Sep 17 00:00:00 2001 From: IceTeaXXD <13521024@std.stei.itb.ac.id> Date: Fri, 17 Nov 2023 02:47:36 +0700 Subject: [PATCH] chore: change node version on docker --- Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 605fc26..cbdb84c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,12 @@ -# Use an official Node runtime as the base image -FROM node:21.1.0 +FROM node:21-alpine -# Set the working directory in the container to /app WORKDIR /app -# Copy package.json and package-lock.json to the working directory COPY package*.json ./ +COPY yarn.lock ./ -# Install any needed packages specified in package.json RUN yarn install -# Bundle app source COPY . . -# Run the app when the container launches CMD ["yarn", "start"] \ No newline at end of file -- GitLab