Skip to content

Commit

Permalink
Merge pull request #62 from tgardiner/helia-docker
Browse files Browse the repository at this point in the history
add Dockerfile
  • Loading branch information
haydenyoung authored Oct 28, 2024
2 parents 0c89598 + 85dac4d commit 835ae13
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .dockerignore
.git
node_modules
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1

FROM node:20.17 AS build-env
ENV NODE_ENV=production

WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm ci --only=production
COPY . .

FROM node:20.17-slim
COPY --from=build-env /app /app
WORKDIR /app
CMD [ "node", "./src/bin/cli.js", "daemon" ]

0 comments on commit 835ae13

Please sign in to comment.