21 lines
441 B
Docker
21 lines
441 B
Docker
FROM golang:1.14
|
|
|
|
# Set the Current Working Directory inside the container
|
|
WORKDIR $GOPATH/src/app
|
|
|
|
# Copy everything from the current directory to the PWD(Present Working Directory) inside the container
|
|
COPY . .
|
|
|
|
# Download all the dependencies
|
|
RUN go get -d -v ./...
|
|
|
|
# Install the package
|
|
RUN go install -v ./...
|
|
|
|
# This container exposes port 8080 to the outside world
|
|
EXPOSE 8080
|
|
|
|
ENV GIN_MODE=release
|
|
|
|
# Run the executable
|
|
CMD ["ura"]
|