-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 730 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 730 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
33
34
35
FROM node:20-bullseye
LABEL maintainer="koalazak <zak.tux@gmail.com>"
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Set the node env (we only need production dependencies in the deployed image)
ENV NODE_ENV production
# Install dependencies (we deliberately just copy packages.json so we can use the cache if no package.json changes are made)
COPY package.json /usr/src/app/
RUN npm install
# Copy the sources
COPY . /usr/src/app
# Set default env
ENV BLID=
ENV PASSWORD=
ENV ROBOT_IP=
ENV FIRMWARE_VERSION=
ENV ENABLE_LOCAL=
ENV ENABLE_CLOUD=
ENV KEEP_ALIVE=
ENV SSL_KEY_FILE=
ENV SSL_CERT_FILE=
ENV PORT=3000
ENV DEBUG=rest980:*
EXPOSE ${PORT}
# Start the REST interface!
CMD [ "npm", "start" ]