Skip to content

Commit 01eb4c0

Browse files
authored
Merge pull request #12 from dreamvo/feat/dockerCI
Fix Docker image build context in CI
2 parents 1f04f95 + 709c730 commit 01eb4c0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515
name: dreamvo/gilfoyle
1616
username: ${{ secrets.DOCKER_USERNAME }}
1717
password: ${{ secrets.DOCKER_PASSWORD }}
18+
context: .
1819
workdir: support/docker

support/docker/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LABEL maintainer="Sundowndev" \
88
org.label-schema.schema-version="0.1"
99

1010
WORKDIR /app
11+
RUN apk add build-base
1112
COPY . .
1213
RUN go get -v -t -d ./...
1314
RUN go generate ./...

support/docker/docker-compose.dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ services:
44
gilfoyle:
55
restart: on-failure
66
build:
7-
context: .
8-
dockerfile: Dockerfile
7+
context: ../../
8+
dockerfile: support/docker/Dockerfile
99
command:
1010
- "serve -p 3000"
1111
ports:

0 commit comments

Comments
 (0)