Skip to content

Commit

Permalink
Add standalone Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Dec 25, 2023
1 parent 9c96185 commit d3dd804
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions standalone.Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit d3dd804

Please sign in to comment.