Dockerfile va docker-compose.yml o'zgartirishlar: volumes olib tashlandi, .env qo'shildi
This commit is contained in:
@@ -99,8 +99,6 @@ services:
|
||||
build:
|
||||
context: ./notification
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./notification:/app
|
||||
networks:
|
||||
- lamenu
|
||||
profiles:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM golang:alpine as build
|
||||
FROM golang:alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -15,5 +15,6 @@ FROM alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/notification .
|
||||
COPY ./.env /app/
|
||||
|
||||
CMD ["./notification"]
|
||||
|
||||
Reference in New Issue
Block a user