Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix dockerfile build problem #52

Merged
merged 2 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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