-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (41 loc) · 992 Bytes
/
Dockerfile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Use an official Node runtime as a parent image
FROM node:20
# Update npm
RUN npm install -g npm@10.5.0
# Define build arguments
ARG DOCKER_ENV="true"
ARG PRIVKEY_PATH
ARG CERT_PATH
ARG SERVER_PORT
ARG MONGODB_DB
ARG MONGODB_PORT
ARG MONGODB_USERNAME
ARG MONGODB_PASSWORD
ARG B2_ACCOUNT_ID
ARG B2_APPLICATION_KEY
ARG B2_BUCKET_ID
ARG MONGODB_HOST="mongodb"
ARG ENCRYPTION_KEY
ARG GITHUB_OWNER="BTI-US"
ARG GITHUB_REPO="PhotoEditor"
ARG GITHUB_TOKEN
ARG RELEASE_NAME="release.apk"
ARG INFURA_PROJECT_ID
ARG CONTRACT_ADDRESS
ARG ETHEREUM_NETWORK
ARG EXPIRATION_TIME_PERIOD
ARG MIN_TOKEN_AMOUNT
ARG REDIS_HOST="redis"
ARG REDIS_PORT
ARG ENABLE_OCR_DETECTION
ARG ENABLE_USER_ID_VERIFICATION
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install any dependencies
RUN npm install
# Copy local code to the container image.
COPY src/ .
# Run the web service on container startup
CMD [ "node", "start.js" ]