1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@
|
||||
FROM docker.io/node:alpine AS builder |
||||
|
||||
WORKDIR /matritch |
||||
|
||||
COPY package.json yarn.lock ./ |
||||
|
||||
RUN yarn install |
||||
|
||||
|
||||
FROM docker.io/node:alpine |
||||
|
||||
VOLUME /data |
||||
WORKDIR /data |
||||
|
||||
USER nobody:nogroup |
||||
|
||||
COPY --from=builder /matritch/node_modules /matritch/node_modules |
||||
COPY index.js /matritch/ |
||||
|
||||
CMD ["node", "/matritch/index.js", "-f", "/data/matritch-registration.yaml"] |
Loading…
Reference in new issue