0
0
docker-images/dockerfiles/hckrnws.Dockerfile
Opnxng c7dd20a46b
All checks were successful
hckrnws / build (push) Successful in 1m53s
Added Hckrnws
2024-10-09 19:44:34 +08:00

24 lines
469 B
Docker
Executable File

# Use the official Node.js image
FROM node:lts-slim
# Set the working directory in the container
WORKDIR /app
# Copy package.json and pnpm-lock.yaml for installing dependencies
COPY package.json pnpm-lock.yaml ./
# Install pnpm
RUN npm install -g pnpm
# Install project dependencies
RUN pnpm install
# Copy the rest of the application code
COPY . .
# Expose the port
EXPOSE 3000
# Command to run the application
CMD ["pnpm", "run", "dev"]