Fix permission errors in Dockerfile and update docker-compose.yml
This commit is contained in:
1 parent
b4fe1c7b73
commit
55ad865707
2 files changed
+4
-2
No files matched your search
@@ -15,6 +15,8 @@ COPY src ./src
|
|||||||
COPY bot.properties.example bot.properties ./
|
COPY bot.properties.example bot.properties ./
|
||||||
COPY startup.sh ./
|
COPY startup.sh ./
|
||||||
|
|
||||||
|
RUN ["chmod", "+x", "./mvnw"]
|
||||||
RUN ./mvnw install
|
RUN ./mvnw install
|
||||||
|
|
||||||
|
RUN ["chmod", "+x", "./startup.sh"]
|
||||||
CMD ["./startup.sh"]
|
CMD ["./startup.sh"]
|
||||||
+2
-2
@@ -4,7 +4,7 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: mariadb:10.7
|
image: mariadb:10.7
|
||||||
container_name: db
|
container_name: db
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- netneutrality-db:/var/lib/mysql
|
- netneutrality-db:/var/lib/mysql
|
||||||
- ./sql:/docker-entrypoint-initdb.d
|
- ./sql:/docker-entrypoint-initdb.d
|
||||||
@@ -21,7 +21,7 @@ services:
|
|||||||
bot:
|
bot:
|
||||||
container_name: bot
|
container_name: bot
|
||||||
build: ./
|
build: ./
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in new issue
Block a user