Added Jenkinsfile and Dockerfile
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:16-alpine
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY ./.next /app/.next
|
||||
COPY ./public /app/public
|
||||
COPY ./res /app/res
|
||||
COPY ./node_modules /app/node_modules
|
||||
COPY ./next.config.js /app/next.config.js
|
||||
COPY ./package.json /app/package.json
|
||||
COPY ./yarn.lock /app/yarn.lock
|
||||
|
||||
RUN npm install
|
||||
|
||||
ENTRYPOINT npm start
|
||||
EXPOSE 3000
|
||||
Reference in New Issue
Block a user