You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flagon.apache.org by ej...@apache.org on 2024/04/26 00:56:23 UTC

(flagon-useralejs) branch dockerized-example-server created (now a807604)

This is an automated email from the ASF dual-hosted git repository.

ejones pushed a change to branch dockerized-example-server
in repository https://gitbox.apache.org/repos/asf/flagon-useralejs.git


      at a807604  feat(Dockerfile) adds docker file to containerized the example server

This branch includes the following new commits:

     new a807604  feat(Dockerfile) adds docker file to containerized the example server

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(flagon-useralejs) 01/01: feat(Dockerfile) adds docker file to containerized the example server

Posted by ej...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ejones pushed a commit to branch dockerized-example-server
in repository https://gitbox.apache.org/repos/asf/flagon-useralejs.git

commit a8076044107e6593654420cb5963e22cad6486ed
Author: Evan Jones <ev...@gmail.com>
AuthorDate: Thu Apr 25 20:56:10 2024 -0400

    feat(Dockerfile) adds docker file to containerized the example server
---
 Dockerfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a31ccf2
--- /dev/null
+++ b/Dockerfile
@@ -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"]