This commit is contained in:
Morten Olsen
2021-07-22 23:31:11 +02:00
commit a2ba8dc22b
9 changed files with 795 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:alpine as BuildEnv
COPY package.json /app/package.json
WORKDIR /app
RUN yarn install
COPY . /app/
RUN yarn bundle
FROM node:alpine
RUN apk update && apk add git
COPY --from=BuildEnv /app/dist /app
RUN ls /app
CMD ["node", "/app/index.js"]
VOLUME /backup