Some stuff that works

This commit is contained in:
Benjamin Bach 2023-12-14 12:29:14 +01:00
parent c12add7dfc
commit 266c7b9fff
No known key found for this signature in database
GPG key ID: 486F0D69C845416E
2 changed files with 23 additions and 2 deletions

View file

@ -11,5 +11,10 @@ RUN cd / && \
RUN cd /phanpy && \ RUN cd /phanpy && \
npm install && \ npm install && \
npm run build npm run build
CMD cp /phanpy/dist /mnt FROM nginx:alpine
COPY --from=0 /phanpy/dist /usr/share/nginx/html
EXPOSE 80

View file

@ -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