Make Dockerfile more generic for this repo
- use local copy instead of cloning, so people can change their config - expose port 5000
This commit is contained in:
parent
d9b30c6a72
commit
934ea54e17
1 changed files with 3 additions and 4 deletions
|
@ -1,12 +1,11 @@
|
|||
FROM node:lts-slim
|
||||
|
||||
WORKDIR /var/olgitbridge/software
|
||||
WORKDIR /var/olgitbridge/
|
||||
COPY . .
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install --no-install-recommends git ca-certificates -y && apt-get clean
|
||||
RUN git clone https://gitlab.com/axkibe/olgitbridge.git .
|
||||
RUN npm install
|
||||
RUN git config --global user.email "overleaf-git-bridge@system.changeme.invalid" && git config --global user.name "Overleaf Git Bridge"
|
||||
|
||||
COPY config.js /var/olgitbridge/software/config.js
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT [ "node", "src/server.js" ]
|
||||
|
||||
|
|
Loading…
Reference in a new issue