Skip to content

Commit

Permalink
remove extra builder in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lologarithm committed Aug 30, 2022
1 parent da707ae commit 8777d11
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
# syntax=docker/dockerfile:1
#build stage

FROM golang:alpine AS builder
FROM golang:1.18
RUN apk add --no-cache git

WORKDIR /go/src/app
WORKDIR /wotlk
COPY . .
COPY . .
RUN go get -d -v ./...

RUN go build -o /go/bin/app -v ./...
RUN apt-get update

RUN apt-get install -y protobuf-compiler
#final stage
RUN go get -u google.golang.org/protobuf
FROM alpine:latest
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
RUN apk --no-cache add ca-certificates

COPY --from=builder /go/bin/app /app
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
ENTRYPOINT /app

LABEL Name=wotlk Version=0.0.1
ENV NODE_VERSION=14.18.3
EXPOSE 8080
ENV NVM_DIR="/root/.nvm"
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
Expand Down

0 comments on commit 8777d11

Please sign in to comment.