From 266c7b9fff36247c3d225794449c504b0eae49f8 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Thu, 14 Dec 2023 12:29:14 +0100 Subject: [PATCH] Some stuff that works --- Dockerfile_phanpy | 9 +++++++-- README.md | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Dockerfile_phanpy b/Dockerfile_phanpy index 1003ff1..b785deb 100644 --- a/Dockerfile_phanpy +++ b/Dockerfile_phanpy @@ -11,5 +11,10 @@ RUN cd / && \ RUN cd /phanpy && \ npm install && \ npm run build - -CMD cp /phanpy/dist /mnt + +FROM nginx:alpine + +COPY --from=0 /phanpy/dist /usr/share/nginx/html + +EXPOSE 80 + diff --git a/README.md b/README.md index e69de29..8a30c7b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,16 @@ +# Phanpy Docker setup and Drone build + +This is an experiment. To build and run locally: + +``` +docker build . -t phanpy:latest -f Dockerfile_phanpy +``` + +To run the container: + +``` +docker run -p 8000:80 -t phanpy:latest +``` + +Now access Phanpy on http://localhost:8000 +