Skip to content

Commit

Permalink
feat(Dockerfile) adds docker file to containerized the example server
Browse files Browse the repository at this point in the history
  • Loading branch information
EandrewJones committed Apr 26, 2024
1 parent 01295de commit a807604
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
FROM --platform=${BUILDPLATFORM} node:18-bullseye-slim AS flagon-node

WORKDIR /app
RUN --mount=type=bind,target=./package.json,src=./package.json \
--mount=type=bind,target=./package-lock.json,src=./package-lock.json \
npm ci
COPY ./src src/
COPY ./example example/

CMD ["node", "example/server.js"]

0 comments on commit a807604

Please sign in to comment.