mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
dockerfiles fix #3
This commit is contained in:
parent
73088f11dd
commit
4b9c2f12fa
3 changed files with 16 additions and 2 deletions
|
@ -34,7 +34,7 @@ To deploy an instance of the server within docker, run:
|
|||
|
||||
```sh
|
||||
docker buildx build -t glimpse-server:latest .
|
||||
docker run -it --rm glimpse-server:latest
|
||||
docker run -it --rm -p 5000:5000 glimpse-server:latest
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
FROM nimlang/nim:latest AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . /src
|
||||
|
||||
|
@ -8,5 +9,4 @@ RUN nimble -y install jester norm checksums
|
|||
RUN nimble build
|
||||
|
||||
FROM scratch AS runner
|
||||
|
||||
COPY --from=builder /src/server .
|
14
dockerfile
Normal file
14
dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM nimlang/nim:latest AS builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . /src
|
||||
|
||||
RUN apt-get -y update && apt-get -y upgrade && apt-get -y autoremove
|
||||
|
||||
RUN nimble -y install jester norm checksums
|
||||
RUN nimble build -d:release
|
||||
|
||||
ARG PORT=5000
|
||||
EXPOSE $PORT
|
||||
|
||||
ENTRYPOINT ["./server"]
|
Loading…
Add table
Reference in a new issue