Fixing earthfile

This commit is contained in:
2023-06-08 16:33:34 +02:00
parent 3ab6fc97e9
commit 012d0fe823
6 changed files with 61 additions and 17 deletions

18
Earthfile Normal file
View File

@ -0,0 +1,18 @@
VERSION 0.7
FROM node:lts-alpine3.18
WORKDIR /build
docker-multi:
BUILD --platform linux/amd64 --platform linux/arm64 +docker
docker:
COPY package.json tsconfig.json .
COPY src ./src
COPY public ./public
RUN yarn install
RUN yarn build
WORKDIR /build
ENTRYPOINT ["node", "lib/index.js"]
ARG EARTHLY_TARGET_TAG
ARG TAG=$EARTHLY_TARGET_TAG
SAVE IMAGE --push docker.hibas123.de/screenshare:$TAG