Skip to content

admin/dorfarchiv

PublicMirror

Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git

Levin KellerInitial commit140869eHistory
26 lines · 595 B
1FROM node:alpine AS builder
2
3WORKDIR /usr/src/app
4
5COPY package.json package-lock.json ./
6
7RUN npm ci
8# Copy the rest of the source files into the image.
9COPY . .
10
11RUN npm run build
12
13FROM ghcr.io/levino/levins-pocketbase-auth-layer:v1
14
15ENV POCKETBASE_URL=https://api.levinkeller.de
16ENV POCKETBASE_GROUP=example
17ENV PORT=8000
18EXPOSE 8000
19
20# Copy the built files from the builder stage
21COPY --from=builder /usr/src/app/build /app/build
22
23COPY --from=builder /usr/src/app/node_modules/pocketbase/dist/pocketbase.umd.js /app/build/public/
24
25# Start the Node.js application
26CMD ["npm", "run", "start"]