forked from dvsa/ftts-results-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-trapi
More file actions
26 lines (20 loc) · 795 Bytes
/
Dockerfile-trapi
File metadata and controls
26 lines (20 loc) · 795 Bytes
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
FROM node:12
WORKDIR /app
COPY kainos-chain.pem .
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
RUN apt update && \
apt upgrade -y && \
apt install apt-transport-https
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/9/prod stretch main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN apt update && \
apt install -y azure-functions-core-tools-3 dotnet-runtime-3.1
WORKDIR /app/ftts-results-api
COPY ftts-results-api/.npmrc .
COPY ftts-results-api/packag*.json ./
RUN export NODE_EXTRA_CA_CERTS=/app/kainos-chain.pem && \
npm install -g npm@7.9.0 && \
npm install
COPY ftts-results-api/ ./
COPY .env .
ENTRYPOINT [ "npm", "run", "local:watch" ]