Skip to content
Snippets Groups Projects
Commit b9c994a9 authored by tgs266's avatar tgs266
Browse files

two dockerfiles

parent 025556f3
No related branches found
No related tags found
No related merge requests found
File moved
FROM golang:1.16.8-bullseye
## We create an /app directory within our
## image that will hold our application source
## files
RUN mkdir /app
## We copy everything in the root directory
## into our /app directory
ADD . /app
## We specify that we now wish to execute
## any further commands inside our /app
## directory
WORKDIR /app
## we run go build to compile the binary
## executable of our Go program
RUN go build -o main .
## Our start command which kicks off
## our newly created binary executable
CMD ["/app/main -env=prod"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment