-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 909 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use Node.js version 20 as the base image
FROM node:20
# Use bash shell for subsequent commands
SHELL ["/bin/bash", "-c"]
# Install pnpm globally at the specified version
RUN npm install -g [email protected]
# Set the working directory inside the container
WORKDIR /app
# Copy package files to the working directory
COPY package*.json ./
# Install dependencies using pnpm with only lockfile generation
RUN pnpm i
# Copy the remaining project files into the container
COPY . .
# Build the project with the specified command
RUN pnpm run build
# Set the default command to run the application
ENTRYPOINT ["node", "dist/index.js"]
# Metadata labels for the Docker image
LABEL \
name="Auto Label" \
homepage="https://github.com/marketplace/actions/auto-label-stuff" \
repository="https://github.com/offensive-vk/auto-label" \
maintainer="TheHamsterBot <[email protected]>"