forked from hyperledger-labs/blockchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postgres-Dockerfile
29 lines (22 loc) · 889 Bytes
/
postgres-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
# Copyright Tecnalia Research & Innovation (https://www.tecnalia.com)
# Copyright Tecnalia Blockchain LAB
#
# SPDX-License-Identifier: Apache-2.0
FROM postgres:10.4-alpine
# default database name for HLF Explorer db connection
ENV DATABASE_DATABASE fabricexplorer
# default username for HLF Explorer db connection
ENV DATABASE_USERNAME hppoc
# default password for HLF Explorer db connection
ENV DATABASE_PASSWORD password
RUN apk update \
&& apk add jq \
&& apk add nodejs \
&& apk add sudo \
&& rm -rf /var/cache/apk/*
WORKDIR /opt
# Copy files
COPY app/persistence/fabric/postgreSQL/db/explorerpg.sql /opt/explorerpg.sql
COPY app/persistence/fabric/postgreSQL/db/updatepg.sql /opt/updatepg.sql
COPY app/persistence/fabric/postgreSQL/db/createdb.sh /docker-entrypoint-initdb.d/createdb.sh
COPY app/persistence/fabric/postgreSQL/db/processenv.js /opt/processenv.js