Skip to content

Commit

Permalink
Fix docker images (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat authored Oct 8, 2023
1 parent 990cdf0 commit 65e2fb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 as builder
FROM golang:1.21 as builder
COPY ./ /src/project
WORKDIR /src/project
RUN CGO_ENABLED=0 go build -o '/bin/gocrane' './'
Expand Down
2 changes: 1 addition & 1 deletion example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mokiat/gocrane:latest AS gocrane

FROM golang:1.19
FROM golang:1.21
COPY --from=gocrane /bin/gocrane /bin/gocrane
COPY . /src/project
WORKDIR /src/project
Expand Down
4 changes: 2 additions & 2 deletions example/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '2.4'
version: '3.8'

services:
example:
container_name: example
build: ./
image: 'example:latest'
image: "example:latest"
volumes:
- "./:/src/project"
ports:
Expand Down
4 changes: 3 additions & 1 deletion example/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/mokiat/gocrane/example

go 1.19
go 1.21

toolchain go1.21.1

0 comments on commit 65e2fb1

Please sign in to comment.