forked from hummingbot/gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 755 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
# Set the base image
FROM node:18.10.0
# WORKDIR /usr/src/app/
WORKDIR /home/gateway
# Copy files
COPY . .
# Dockerfile author / maintainer
LABEL maintainer="Michael Feng <mike@hummingbot.org>"
# Build arguments
LABEL branch=${BRANCH}
LABEL commit=${COMMIT}
LABEL date=${BUILD_DATE}
# Set ENV variables
ENV COMMIT_BRANCH=${BRANCH}
ENV COMMIT_SHA=${COMMIT}
ENV BUILD_DATE=${DATE}
ENV INSTALLATION_TYPE=docker
# Create mount points
RUN mkdir -p /home/gateway/conf /home/gateway/logs /home/gateway/db /home/gateway/certs
# Install dependencies and compile
RUN yarn install --frozen-lockfile
RUN yarn build
# Expose port 15888 - note that docs port is 8080
EXPOSE 15888
# Set the default command to run when starting the container
CMD yarn run start