Replace UI module with Next.js
This commit is contained in:
parent
8aeff18162
commit
616205fe73
91 changed files with 3570 additions and 722 deletions
|
@ -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"]
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue