Skip to content
Snippets Groups Projects
Commit f25d0052 authored by Ahmad Nadil's avatar Ahmad Nadil
Browse files

chore: change node version on docker

parent b48c0578
Branches
Tags
No related merge requests found
# 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment