From d3dd8043cc336502813e3984e16a979bab51dc6d Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Tue, 26 Dec 2023 00:02:27 +0100 Subject: [PATCH] Add standalone Dockerfile --- standalone.Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 standalone.Dockerfile diff --git a/standalone.Dockerfile b/standalone.Dockerfile new file mode 100644 index 0000000..33c9171 --- /dev/null +++ b/standalone.Dockerfile @@ -0,0 +1,23 @@ +FROM alpine:latest + +LABEL org.opencontainers.image.source=https://github.com/bokub/ha-linky +LABEL org.opencontainers.image.description="HA Linky Standalone" +LABEL org.opencontainers.image.licenses=MIT + +RUN apk add --no-cache nodejs npm + +WORKDIR /linky + +# Install dependencies +COPY package.json . +COPY package-lock.json . +RUN npm ci --ignore-scripts + +# Copy add-on code +COPY . . + +# Transpile TypeScript +RUN npm run build + +CMD [ "node", "--experimental-modules", "dist/index.js" ] +