Do not build custom db image
This commit is contained in:
parent
69db707d68
commit
27167ace1b
@ -41,11 +41,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: gitea.cebotari.ru/chebser/rhsolutions-api:latest
|
tags: gitea.cebotari.ru/chebser/rhsolutions-api:latest
|
||||||
- name: Build database
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: Database
|
|
||||||
file: Database/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: gitea.cebotari.ru/chebser/rhsolutions-db:latest
|
|
@ -1,6 +0,0 @@
|
|||||||
FROM postgres:16.1-alpine AS build
|
|
||||||
ADD ./*.sql /docker-entrypoint-initdb.d
|
|
||||||
RUN chmod 644 /docker-entrypoint-initdb.d/*.sql
|
|
||||||
EXPOSE 5432
|
|
||||||
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
|
||||||
CMD [ "postgres" ]
|
|
@ -1,6 +1,7 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
|
||||||
WORKDIR /source
|
WORKDIR /source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN dotnet restore
|
||||||
RUN dotnet publish --property:OutputPath=/app
|
RUN dotnet publish --property:OutputPath=/app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled
|
||||||
|
@ -19,7 +19,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
db:
|
db:
|
||||||
build: Database/.
|
image: postgres:16
|
||||||
container_name: db
|
container_name: db
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=chebser
|
- POSTGRES_USER=chebser
|
||||||
@ -27,6 +27,7 @@ services:
|
|||||||
- POSTGRES_DB=rhsolutions
|
- POSTGRES_DB=rhsolutions
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
|
- ./Database:/docker-entrypoint-initdb.d
|
||||||
networks:
|
networks:
|
||||||
- rhsolutions
|
- rhsolutions
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user