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