-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_old
48 lines (37 loc) · 935 Bytes
/
Dockerfile_old
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
ARG NODE_IMAGE=node:16.17.0
FROM $NODE_IMAGE AS base
# Set working directory
WORKDIR /usr/src/app
ENV PORT=3838
ENV HOST=0.0.0.0
ENV NODE_ENV=development
ENV APP_KEY=nofallomuitoportugues
ENV DRIVE_DISK=local
ENV APP_NAME="Telos Comment"
ENV HYPERION_ENDPOINT=https://testnet.telos.caleos.io
ENV COMMENT_SMART_CONTRACT=testcomments
ENV DB_CONNECTION=pg
ENV PG_HOST=localhost
ENV PG_PORT=5432
ENV PG_USER=comment
ENV PG_PASSWORD='somepassword'
ENV PG_DB_NAME=comment
ENV REDIS_CONNECTION=local
ENV REDIS_HOST=127.0.0.1
ENV REDIS_PORT=6379
ENV REDIS_PASSWORD=
ENV DSTOR_IPFS_BASE_URL=https://api.dstor.cloud/ipfs
ENV DSTOR_API_KEY=someapikey
ENV UPLOAD_BYTES_LIMIT=30000
# Install dependencies
COPY package*.json ./
RUN npm ci --production
# Copy app source code
COPY . .
# Build app
RUN npm run build --production --ignore-ts-errors
COPY ./.env ./build
# Expose port
EXPOSE 3838
# Start app
CMD ["node", "./build/server.js"]