forked from wehkamp/bot-zero
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 709 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
28
29
30
31
32
#build using the latest node container
FROM node:latest AS buildstep
# Copy in package.json, install
# and build all node modules
WORKDIR /bot-zero
COPY package.json .
COPY package-lock.json .
RUN npm install --production
# This is our runtime container that will end up
# running on the device.
FROM node:alpine
# Set time zone on container
RUN apk add tzdata
ENV TZ=Europe/Amsterdam
WORKDIR /bot-zero
# Copy our node_modules into our deployable container context.
COPY --from=buildstep /bot-zero/node_modules node_modules
COPY bin ./bin
COPY package.json .
COPY package-lock.json .
COPY .env .
COPY scripts ./scripts
COPY index.js .
COPY external-scripts.json .
# Launch our App.
CMD ["npm", "start"]