diff --git a/Dockerfile b/Dockerfile index 97058b2..8f5704b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,26 @@ -FROM golang:1.19-alpine AS build +# syntax = docker/dockerfile:1.4 +FROM nixos/nix:latest AS builder + +WORKDIR /tmp/build +RUN mkdir /tmp/nix-store-closure + +RUN \ + --mount=type=cache,target=/nix,from=nixos/nix:latest,source=/nix \ + --mount=type=cache,target=/root/.cache \ + --mount=type=bind,target=/tmp/build \ + <