forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Production image, copy all the files and run next
FROM node
WORKDIR /app
ENV NODE_ENV production
# You only need to copy next.config.js if you are NOT using the default configuration
# COPY --from=builder /app/next.config.js ./
COPY ./public ./public
COPY ./.next ./.next
COPY ./node_modules/.bin ./node_modules/.bin
COPY ./package.json ./package.json
EXPOSE 3000
ENV PORT 3000
ENV HOST 0.0.0.0
RUN npm config set registry https://registry.npm.taobao.org
RUN npm i -g next
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry.
# ENV NEXT_TELEMETRY_DISABLED 1
CMD ["node_modules/.bin/next", "start"]