diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c5f0f95f..05c8fc66 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,4 +15,5 @@ jobs: name: dreamvo/gilfoyle username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + context: . workdir: support/docker diff --git a/support/docker/Dockerfile b/support/docker/Dockerfile index af148830..f8cd60a5 100644 --- a/support/docker/Dockerfile +++ b/support/docker/Dockerfile @@ -8,6 +8,7 @@ LABEL maintainer="Sundowndev" \ org.label-schema.schema-version="0.1" WORKDIR /app +RUN apk add build-base COPY . . RUN go get -v -t -d ./... RUN go generate ./... diff --git a/support/docker/docker-compose.dev.yml b/support/docker/docker-compose.dev.yml index d081b8fb..296630cb 100644 --- a/support/docker/docker-compose.dev.yml +++ b/support/docker/docker-compose.dev.yml @@ -4,8 +4,8 @@ services: gilfoyle: restart: on-failure build: - context: . - dockerfile: Dockerfile + context: ../../ + dockerfile: support/docker/Dockerfile command: - "serve -p 3000" ports: