mirror of
https://github.com/alexgo-io/redstone-node.git
synced 2026-01-12 22:43:31 +08:00
38 lines
819 B
Docker
38 lines
819 B
Docker
# Docker container built using this Dockerfile
|
|
# can be published to the public docker registry
|
|
# But before running the container it must be configured to provide
|
|
# the node config through environment variables
|
|
|
|
FROM node:16
|
|
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
|
|
# Installing required npm packages
|
|
COPY package.json package.json
|
|
COPY yarn.lock yarn.lock
|
|
RUN yarn
|
|
|
|
# Copying all files
|
|
COPY . .
|
|
|
|
# Building app
|
|
RUN yarn build
|
|
|
|
# Setting production env variables
|
|
ENV ENABLE_JSON_LOGS=true
|
|
ENV ENABLE_PERFORMANCE_TRACKING=true
|
|
ENV PRINT_DIAGNOSTIC_INFO=true
|
|
ENV MANIFEST_REFRESH_INTERVAL=120000
|
|
ENV ARWEAVE_KEYS_FILE_PATH=
|
|
ENV ARWEAVE_KEYS_JWK=
|
|
ENV OVERRIDE_MANIFEST_USING_FILE=
|
|
ENV ECDSA_PRIVATE_KEY=
|
|
ENV TWELVE_DATA_RAPID_API_KEY=
|
|
|
|
# Exposing 8080 port for health checks
|
|
EXPOSE 8080
|
|
|
|
# Running redstone node
|
|
CMD yarn start:prod
|