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 +