-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 890 Bytes
/
Dockerfile
File metadata and controls
32 lines (27 loc) · 890 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
30
31
32
FROM node:25-alpine as build-stage
WORKDIR /app
RUN npm i -g pnpm
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm install
COPY . .
ARG NUXT_APP_BASE_URL=/
ENV NUXT_APP_BASE_URL=$NUXT_APP_BASE_URL
RUN pnpm generate
FROM node:25-alpine
RUN apk add --no-cache curl
WORKDIR /app
# Copy the static export to /app/public
COPY --from=build-stage /app/.output/public /app/public
# Copy the entrypoint code
COPY entrypoint /app/entrypoint
WORKDIR /app/entrypoint
RUN npm i -g pnpm && pnpm install
EXPOSE 3000
ENV NODE_ENV=production
LABEL org.opencontainers.image.source=https://github.com/not-three/ui
LABEL org.opencontainers.image.title="not-th.re/ui"
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", "index.mjs"]