cic-internal-integration/apps/cic-meta/docker/Dockerfile

33 lines
834 B
Docker
Raw Normal View History

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-02-08 18:31:29 +01:00
COPY cic-meta/package.json \
./
COPY cic-meta/src/ src/
COPY cic-meta/tests/ tests/
COPY cic-meta/scripts/ scripts/
RUN npm install
# see exports_dir gpg.ini
COPY cic-meta/tests/*.asc /root/pgp/
2021-02-08 18:31:29 +01:00
RUN alias tsc=node_modules/typescript/bin/tsc
2021-02-08 18:31:29 +01:00
COPY cic-meta/.config/ /usr/local/etc/cic-meta/
2021-02-09 18:32:36 +01:00
# COPY cic-meta/scripts/server/initdb/server.postgres.sql /usr/local/share/cic-meta/sql/server.sql
2021-02-08 18:31:29 +01:00
COPY cic-meta/docker/db.sh ./db.sh
RUN chmod 755 ./db.sh
#RUN alias ts-node=/tmp/src/cic-meta/node_modules/ts-node/dist/bin.js
#ENTRYPOINT [ "./node_modules/ts-node/dist/bin.js", "./scripts/server/server.ts" ]
2021-02-08 18:31:29 +01:00
COPY cic-meta/docker/start_server.sh ./start_server.sh
RUN chmod 755 ./start_server.sh
ENTRYPOINT ["sh", "./start_server.sh"]