Skip to content

Commit

Permalink
fix dockerfile restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa committed Oct 12, 2023
1 parent ab85369 commit 99e4187
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta-docker-branch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Beta docker on dev branch
name: Beta docker release on dev branch

on:
push:
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM coredns/coredns:1.11.1@sha256:2169b3b96af988cf69d7dd69efbcc59433eb027320eb185c6110e0850b997870

COPY ./core-dns /app/conf/Corefile
COPY ./core-dns/Corefile /app/conf/Corefile

WORKDIR /app
EXPOSE 53 53/udp

# -> exposed port: 53

CMD ["/coredns", "-conf", "/app/conf/Corefile"]
ENTRYPOINT ["/coredns"]
CMD ["-conf", "/app/conf/Corefile"]
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ version: "3.8"
services:
azure-core-dns:
# image: ghcr.io/pagopa/azure-core-dns:beta-setup-azure-core-dns
build:
dockerfile: ./Dockerfile
context: .
image: azurecoredns:latest
# build:
# dockerfile: ./Dockerfile
# context: .
container_name: azure-core-dns
restart: always
# restart: always
ports:
- "53:53"

0 comments on commit 99e4187

Please sign in to comment.