chore: update dockerfile

This commit is contained in:
chenos 2022-03-09 17:50:45 +08:00
parent 35c3d47ba1
commit 72fe338bf1
3 changed files with 10 additions and 2 deletions

View File

@ -4,7 +4,9 @@ networks:
driver: bridge driver: bridge
services: services:
adminer: adminer:
image: adminer build:
context: .
dockerfile: ./docker/adminer/Dockerfile
restart: always restart: always
networks: networks:
- nocobase - nocobase
@ -28,7 +30,7 @@ services:
nocobase: nocobase:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: ./docker/nocobase/Dockerfile
networks: networks:
- nocobase - nocobase
command: [ "yarn", "start" ] command: [ "yarn", "start" ]

View File

@ -0,0 +1,6 @@
FROM adminer
USER root
CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ]
EXPOSE 8080