Replace UI module with Next.js
All checks were successful
forgejo/Procyon/seedling/pipeline/pr-master This commit looks good
forgejo/Procyon/seedling/pipeline/head This commit looks good

This commit is contained in:
Roman Jaroš 2023-12-28 21:58:08 +00:00
parent 8aeff18162
commit 616205fe73
91 changed files with 3570 additions and 722 deletions

View file

@ -1,12 +1,27 @@
FROM nginx:1.25.3-alpine
FROM node:18-alpine3.19
RUN mkdir app
RUN mkdir -p /run/nginx
RUN apk add --no-cache libc6-compat
COPY build /app
COPY docker/nginx/conf.d/ /etc/nginx/conf.d/
WORKDIR /app
EXPOSE 80
ENV NODE_ENV production
ENV PORT 3000
VOLUME [ "/etc/nginx/conf.d" ]
ENTRYPOINT ["nginx", "-g", "daemon off;"]
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"]

View file

@ -1,13 +0,0 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /app;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}