Dockerfile va docker-compose.yml o'zgartirishlar: volumes olib tashlandi, .env qo'shildi

This commit is contained in:
A'zamov Samandar
2025-04-21 13:13:37 +05:00
parent 79ac9e16d0
commit 5ce665b643
2 changed files with 2 additions and 3 deletions

View File

@@ -99,8 +99,6 @@ services:
build: build:
context: ./notification context: ./notification
dockerfile: Dockerfile dockerfile: Dockerfile
volumes:
- ./notification:/app
networks: networks:
- lamenu - lamenu
profiles: profiles:

View File

@@ -1,4 +1,4 @@
FROM golang:alpine as build FROM golang:alpine AS build
WORKDIR /app WORKDIR /app
@@ -15,5 +15,6 @@ FROM alpine
WORKDIR /app WORKDIR /app
COPY --from=build /app/notification . COPY --from=build /app/notification .
COPY ./.env /app/
CMD ["./notification"] CMD ["./notification"]