From 97ae7862e7b790cef6ac19c5da1cd19d2a288733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Thu, 20 Oct 2022 17:58:26 +0200 Subject: [PATCH] Add Dockerfile and remove lume install from flake.nix that was causing version issues --- Dockerfile | 7 +++++++ flake.nix | 1 - shell.nix | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 shell.nix diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..71fc136 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM denoland/deno:alpine-1.26.1 + +WORKDIR /site +COPY . . +RUN chown -R deno:deno . +USER deno +RUN deno task build diff --git a/flake.nix b/flake.nix index 489875a..19d6b61 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,6 @@ ]; bash.extra = '' export NVIM_USE_DENOLS=1 - deno run -Ar https://deno.land/x/lume@v1.12.1/init.ts ''; }; }; diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..1c825bd --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +let + unstable = import (fetchTarball https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz) { }; +in +{ nixpkgs ? import {} }: +with nixpkgs; mkShell { + buildInputs = [ + ]; +} +