-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (23 loc) · 883 Bytes
/
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
30
31
32
33
ARG NODE_CONTAINER_VERSION=12.16.3-alpine
FROM node:${NODE_CONTAINER_VERSION} AS builder
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
ADD . .
RUN yarn build
FROM node:${NODE_CONTAINER_VERSION}
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install --production --frozen-lockfile && yarn cache clean
COPY --from=builder dist/ ./dist/
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /usr/local/bin/tini
RUN chmod +rx /usr/local/bin/tini
ENTRYPOINT ["/usr/local/bin/tini", "--"]
USER node
ENV NODE_ENV=production
ENV PORT=8081
EXPOSE ${PORT}
CMD [ "node", "." ]
LABEL description="A Drawpile-compatible auth server backed by LDAP"
LABEL maintainer="Eliot Partridge <[email protected]> (https://code.horse)"
LABEL respository="https://github.com/BytewaveMLP/drawpile-ldap-auth-server"