Clean up Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-02-09 16:32:39 +01:00
parent 557f5a5396
commit cd287f2eae

View file

@ -1,6 +1,5 @@
FROM crystallang/crystal:1.3-alpine as deps
WORKDIR /app
RUN apk add curl --no-cache
COPY ./shard.yml ./shard.lock ./
RUN shards install --production
@ -9,8 +8,8 @@ ARG BUILD_ENV
WORKDIR /app/backend
COPY --from=deps /app/shard.yml /app/shard.lock ./
COPY --from=deps /app/lib ./lib
COPY ./Makefile ./Makefile
COPY ./LICENSE ./LICENSE
COPY ./Makefile ./Makefile
COPY ./src ./src
RUN if [ "${BUILD_ENV}" = "development" ]; then \
make dev; \