Files
bit/Dockerfile
T
2024-07-10 22:29:34 +02:00

20 lines
365 B
Docker

FROM alpine:edge as base
WORKDIR /usr/src/app
RUN apk add crystal shards sqlite-dev openssl-dev
FROM base AS build
ENV ENV=production
COPY . .
RUN shards install
RUN shards build --progress
FROM base AS release
RUN mkdir -p /usr/src/app/sqlite
COPY --from=build /usr/src/app/db db
COPY --from=build /usr/src/app/bin /usr/local/bin
EXPOSE 4000/tcp
CMD ["bit"]