DEV;Update mobile view and add Jenkinsfile

This commit is contained in:
Roman Jaroš 2022-07-06 16:19:59 +02:00
parent 01d9d0d4a3
commit 906691bf15
22 changed files with 305 additions and 212 deletions

31
docker/Dockerfile Normal file
View file

@ -0,0 +1,31 @@
# Install dependencies only when needed
FROM node:16-alpine
RUN apk add --no-cache libc6-compat
WORKDIR /app
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN ls -a
COPY .next/ .next/
COPY public/ public/
COPY node_modules/ node_modules/
COPY package.json package.json
RUN ls -a
RUN ls -a .next
RUN chown -R nextjs:nodejs .next
USER nextjs
EXPOSE 3000
ENV PORT 3000
CMD ["node", "server.js"]