-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 872 Bytes
/
Dockerfile
File metadata and controls
29 lines (25 loc) · 872 Bytes
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
FROM node:25-alpine AS build-stage
WORKDIR /app
RUN apk add --no-cache python3 make g++ py3-setuptools
RUN npm install -g pnpm
COPY package.json .
COPY pnpm-lock.yaml .
RUN pnpm install
COPY . .
RUN pnpm build
RUN pnpm prune --prod
FROM node:25-alpine
RUN apk add --no-cache curl
WORKDIR /app
COPY --from=build-stage /app/dist .
COPY --from=build-stage /app/LICENSE LICENSE
COPY --from=build-stage /app/docs ./docs
COPY --from=build-stage /app/node_modules ./node_modules
EXPOSE 4000
ENV NODE_ENV=production
LABEL org.opencontainers.image.source=https://github.com/not-three/api
LABEL org.opencontainers.image.title="not-th.re/api"
LABEL org.opencontainers.image.description="!3 is a simple, secure and open source paste sharing platform."
LABEL org.opencontainers.image.authors="Joschua Becker EDV <support@scolasti.co>"
STOPSIGNAL SIGINT
CMD ["node", "src/main.js"]