diff options
author | Christian Segundo | 2024-12-24 19:17:41 +0100 |
---|---|---|
committer | Christian Segundo | 2024-12-24 19:17:41 +0100 |
commit | 06562c5fe484eba954770819a56dc4227a78aa44 (patch) | |
tree | 79f8e877581abd4f529b613266a0a9fa691a2401 /Dockerfile | |
parent | f71ff745bd50609bd0ed02d8617834b209a45edb (diff) | |
download | slack2gitlab-emoji-sync-06562c5fe484eba954770819a56dc4227a78aa44.tar.gz |
First commit 🌲
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..55d7385 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM nixos/nix:latest AS builder + +COPY . /tmp/build +WORKDIR /tmp/build + +RUN nix \ + --extra-experimental-features "nix-command flakes" \ + --option filter-syscalls false \ + build -L .#docker + +# no quotes, we actually want to split +RUN mkdir /tmp/nix-store-closure && \ + cp -R $(nix-store -qR result/) /tmp/nix-store-closure + +WORKDIR /tmp/app + +FROM scratch + +COPY --from=builder /tmp/nix-store-closure /nix/store +COPY --from=builder /tmp/build/result / +USER 1000 +ENV PATH=/bin +ENTRYPOINT ["perl", "/bin/sync"] |