Make it modern
This commit is contained in:
18
registry/Earthfile
Normal file
18
registry/Earthfile
Normal file
@ -0,0 +1,18 @@
|
||||
VERSION 0.7
|
||||
FROM docker.io/denoland/deno:alpine-1.38.3
|
||||
WORKDIR /app
|
||||
|
||||
docker-multi:
|
||||
BUILD --platform linux/amd64 --platform linux/arm64 +docker
|
||||
|
||||
docker:
|
||||
COPY src /app/src
|
||||
COPY public /app/public
|
||||
COPY deno.json /app/
|
||||
|
||||
RUN deno cache --unstable src/registry.ts
|
||||
CMD [ "run", "-A", "--unstable", "/app/src/registry.ts" ]
|
||||
|
||||
ARG EARTHLY_TARGET_TAG
|
||||
ARG TAG=$EARTHLY_TARGET_TAG
|
||||
SAVE IMAGE --push git.hibas.dev/deno/denreg:$TAG
|
Reference in New Issue
Block a user