2021-02-08 18:31:29 +01:00
|
|
|
FROM node:15.3.0-alpine3.10
|
|
|
|
|
|
|
|
WORKDIR /tmp/src/cic-meta
|
|
|
|
|
2021-05-01 21:52:03 +02:00
|
|
|
RUN apk add --no-cache postgresql bash
|
2021-04-30 10:33:33 +02:00
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
# required to build the cic-client-meta module
|
2021-02-08 18:31:29 +01:00
|
|
|
COPY cic-meta/src/ src/
|
|
|
|
COPY cic-meta/scripts/ scripts/
|
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
# copy the dependencies
|
|
|
|
COPY cic-meta/package.json .
|
|
|
|
COPY cic-meta/tsconfig.json .
|
|
|
|
COPY cic-meta/webpack.config.js .
|
|
|
|
|
2021-04-30 10:33:33 +02:00
|
|
|
RUN npm install
|
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
COPY cic-meta/tests/ tests/
|
2021-04-30 10:33:33 +02:00
|
|
|
COPY cic-meta/tests/*.asc /root/pgp/
|
2021-02-22 21:00:18 +01:00
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
# copy runtime configs
|
2021-02-08 18:31:29 +01:00
|
|
|
COPY cic-meta/.config/ /usr/local/etc/cic-meta/
|
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
# db migrations
|
2021-02-08 18:31:29 +01:00
|
|
|
COPY cic-meta/docker/db.sh ./db.sh
|
|
|
|
RUN chmod 755 ./db.sh
|
|
|
|
|
2021-06-07 18:11:03 +02:00
|
|
|
RUN alias tsc=node_modules/typescript/bin/tsc
|
2021-04-30 10:33:33 +02:00
|
|
|
COPY cic-meta/docker/start_server.sh ./start_server.sh
|
|
|
|
RUN chmod 755 ./start_server.sh
|
|
|
|
ENTRYPOINT ["sh", "./start_server.sh"]
|