Merge pull request #55 from josephyi/fix/#53/fix-dockerfile

Dockerfile fix for #53
This commit is contained in:
Tanner 2020-10-04 23:40:31 -07:00 committed by GitHub
commit f5c763b6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
FROM node:alpine
WORKDIR /usr/src/app
COPY src/ package.json .
COPY src .
COPY package.json .
RUN apk --no-cache add exiftool && \
npm i
EXPOSE 80 443
CMD ["node", "index.js"]
CMD ["node", "index.js"]

View File

@ -28,7 +28,7 @@ chmod +x install.sh
## Docker
```sh
docker built -t sharex-upload-server .
docker build -t sharex-upload-server .
docker run --name "sharex-upload-server" -d \
-v $(pwd)/src/config.json:/usr/src/app/config.json \
-v $(pwd)/src/db.json:/usr/src/app/db.json \