Dockerfile va docker-compose.yml o'zgartirishlar: volumes olib tashlandi, .env qo'shildi
This commit is contained in:
@@ -99,8 +99,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./notification
|
context: ./notification
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
|
||||||
- ./notification:/app
|
|
||||||
networks:
|
networks:
|
||||||
- lamenu
|
- lamenu
|
||||||
profiles:
|
profiles:
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user