-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,615 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Parent image = docker apline version | ||
# https://docs.docker.com/develop/develop-images/baseimages/ | ||
FROM golang:alpine | ||
|
||
#RUN apk add git | ||
#RUN git clone https://github.com/yuuwe-n/RateMyProfessors.help.git | ||
|
||
COPY . /app | ||
# subsequent commands are at /rmp directory | ||
# use / to refer to root | ||
WORKDIR /app | ||
|
||
RUN go mod download | ||
RUN go mod vendor | ||
RUN go mod verify | ||
# Don't do go build -o /rmp, creates the binary at root | ||
RUN go build | ||
|
||
EXPOSE 8080 | ||
|
||
# CMD needs to be full path or smth | ||
CMD [ "/app/rmp" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.