Fix permission errors in Dockerfile and update docker-compose.yml

This commit is contained in:
anthorob committed 2023-05-24 16:15:33 -04:00
1 parent b4fe1c7b73
commit 55ad865707
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -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
View File
@@ -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: