forked from milktoastlab/SolanaNFTBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (21 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
24 lines (21 loc) · 756 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
FROM node:16 as dependencies
WORKDIR /solananftbot
COPY package.json yarn.lock .env ./
RUN yarn install --frozen-lockfile
FROM node:16 as builder
WORKDIR /solananftbot
COPY . .
COPY --from=dependencies /solananftbot/node_modules ./node_modules
COPY --from=dependencies /solananftbot/.env ./.env
RUN yarn build
FROM node:16 as runner
WORKDIR /solananftbot
ENV NODE_ENV production
# If you are using a custom next.config.js file, uncomment this line.
# COPY --from=builder /solananftbot/next.config.js ./
COPY --from=builder /solananftbot/dist ./dist
COPY --from=builder /solananftbot/node_modules ./node_modules
COPY --from=builder /solananftbot/package.json ./package.json
COPY --from=builder /solananftbot/.env ./.env
EXPOSE 4000
CMD ["yarn", "start"]