mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
deploy via docker #20
This commit is contained in:
parent
1aa4e70c55
commit
9851fe8fca
16 changed files with 121 additions and 28 deletions
16
demo.Dockerfile
Normal file
16
demo.Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
# CGO_ENABLED=1 GOOS=linux CC=x86_64-unknown-linux-gnu-gcc CXX=x86_64-unknown-linux-gnu-g++ GOARCH=amd64 go build -ldflags "-X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
|
||||
FROM --platform=linux/amd64 uozi/nginx-ui-base:latest
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
COPY resources/demo/app.ini /etc/nginx-ui/app.ini
|
||||
COPY resources/demo/demo.db /etc/nginx-ui/database.db
|
||||
COPY resources/docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY resources/docker/nginx-ui.conf /etc/nginx/conf.d/nginx-ui.conf
|
||||
COPY resources/docker/start.sh /app/start.sh
|
||||
COPY nginx-ui /app/nginx-ui
|
||||
|
||||
RUN cd /app && chmod a+x start.sh
|
||||
|
||||
|
||||
ENTRYPOINT ["./start.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue