seedling/source/ui/docker/Dockerfile
Roman Jaroš 1a17cb4f5d
Some checks failed
forgejo/Procyon/seedling/pipeline/head There was a failure building this commit
Replace UI module with Next.js
2023-12-28 21:58:08 +00:00

27 lines
No EOL
459 B
Docker

FROM node:18-alpine3.19
RUN apk add --no-cache libc6-compat
WORKDIR /app
ENV NODE_ENV production
ENV PORT 3000
ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs
COPY .next/ .next/
COPY public/ public/
COPY node_modules/ node_modules/
COPY package.json package.json
COPY next.config.js next.config.js
RUN chown -R nextjs:nodejs .next
USER nextjs
EXPOSE 3000
CMD ["npm", "run", "start"]