-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 764 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
27
28
29
30
31
32
33
FROM node:18-buster-slim
ENV NODE_ENV production
ENV NODE_EXTRA_CA_CERTS /etc/ssl/certs/ca-certificates.crt
ENV KUBERNETES_SERVICE_HOST dummy
RUN apt-get clean && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y curl ca-certificates vim && \
rm -rf /var/lib/apt/lists/* && \
update-ca-certificates && \
npm install --location=global --no-update-notifier --no-audit --no-fund npm@^8.16.0
WORKDIR /usr/src/app
RUN chown -R node:node /usr/src/app && \
chmod 755 /usr/src/app
ADD --chown=node:node ./package*.json ./
RUN npm ci --omit=dev --omit=optional --no-audit --no-fund
ADD ./mw ./mw
ADD ./strategies ./strategies
ADD ./lib ./lib
ADD ./app.js ./debug.js ./
EXPOSE 8080
ENTRYPOINT ["node"]
CMD ["app.js"]