mirror of
https://github.com/morten-olsen/github-backup.git
synced 2026-02-08 01:36:24 +01:00
init
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user