refactor: rename docker image name
This commit is contained in:
parent
1bf3aefbc5
commit
4e1f724970
|
@ -17,8 +17,8 @@ RUN go mod download
|
|||
COPY . .
|
||||
|
||||
# Build our application.
|
||||
#RUN CGO_ENABLED=0 GOOS=linux go build -o docker-mariadb-clean-arch ./cmd/docker-mariadb-clean-arch/main.go
|
||||
RUN go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" -o docker-mariadb-clean-arch ./cmd/docker-mariadb-clean-arch/main.go
|
||||
RUN #CGO_ENABLED=0 GOOS=linux go build -o bill-server ./cmd/bill-server/main.go
|
||||
RUN go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" -o bill-server ./cmd/bill-server/main.go
|
||||
|
||||
|
||||
|
||||
|
@ -29,8 +29,8 @@ FROM scratch AS prod
|
|||
WORKDIR /production
|
||||
|
||||
# Copy our compiled executable from the last stage.
|
||||
COPY --from=api /compiler/docker-mariadb-clean-arch .
|
||||
COPY --from=api /compiler/bill-server .
|
||||
|
||||
# Run application and expose port 8080.
|
||||
EXPOSE 8080
|
||||
CMD ["./docker-mariadb-clean-arch"]
|
||||
CMD ["./bill-server"]
|
||||
|
|
|
@ -2,13 +2,13 @@ version: "3.9"
|
|||
services:
|
||||
fiber-application:
|
||||
restart: on-failure
|
||||
image: docker-mariadb-clean-arch:latest
|
||||
image: bill-server:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: prod
|
||||
ports:
|
||||
- 8080:8080
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ENV=prod
|
||||
- API_USERID=1
|
||||
|
@ -19,7 +19,7 @@ services:
|
|||
- application
|
||||
# depends_on:
|
||||
# - mariadb
|
||||
command: ./docker-mariadb-clean-arch
|
||||
command: ./bill-server
|
||||
|
||||
# mariadb:
|
||||
# image: mariadb:10.6.3
|
||||
|
|
Loading…
Reference in New Issue
Block a user