Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
theAkito committed Aug 17, 2023
1 parent cfb06d4 commit fdbf31c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM nimlang/nim:1.6.14-alpine AS build

WORKDIR /app

COPY . .

RUN \
nimble install -dy && \
nimble docker_build_prod

FROM alpine
COPY --from=build /app/app /
RUN apk --no-cache add libcurl && rm -rf /var/cache/apk/*
ENTRYPOINT ["/app"]
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
restart: on-failure
depends_on:
- redis
volumes:
- ./zoominvitr/app:/data

redis:
image: redis:7-alpine
Expand All @@ -18,4 +20,4 @@ services:
# https://raw.githubusercontent.com/redis/redis/7.0/redis.conf
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./redis:/data
- ./zoominvitr/database:/data

0 comments on commit fdbf31c

Please sign in to comment.