Switching to Earthfile

This commit is contained in:
2023-06-07 21:11:05 +02:00
parent 791b601dec
commit edb3f22044
2 changed files with 19 additions and 32 deletions

19
Earthfile Normal file
View File

@ -0,0 +1,19 @@
VERSION 0.7
FROM node:lts-alpine3.18
WORKDIR /build
docker-multi:
BUILD --platform linux/amd64 --platform linux/arm64 +docker
docker:
COPY package.json yarn.lock .yarnrc.yml tsconfig.json .
COPY src ./src
COPY .yarn ./.yarn
RUN ls -l
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/telegram-rss:$TAG