Skip to content

Commit

Permalink
fix: fix dockerfile build problem (#52)
Browse files Browse the repository at this point in the history
* mod: update dockerfile

* mod: fix branch
  • Loading branch information
hetao92 authored Oct 29, 2021
1 parent b6ed9a3 commit 662da6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/Http-Gateway-Release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Http-Gateway-Release
on:
release:
types:
- published
push:
branches:
- master
jobs:
release-image:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -30,4 +30,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: vesoft/nebula-http-gateway:v2
tags: vesoft/nebula-http-gateway:nightly
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:1.13.1-alpine as builder
FROM golang:1.13.1 as builder
# Set the working directory to /app
WORKDIR /nebula-http-gateway
# Copy the current directory contents into the container at /app
COPY . /nebula-http-gateway
# Make port available to the world outside this container
ENV GOPROXY https://goproxy.cn
RUN CGO_ENABLED=0 go build
RUN go build

FROM alpine
FROM golang:1.13.1

WORKDIR /root
COPY --from=builder ./nebula-http-gateway .
Expand Down

0 comments on commit 662da6b

Please sign in to comment.