Part3
This commit is contained in:
parent
1a5357e1df
commit
e98d78b444
16 changed files with 109 additions and 8 deletions
9
Part3/Exercise05/Dockerfile_back
Normal file
9
Part3/Exercise05/Dockerfile_back
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM golang:1.16
|
||||
EXPOSE 8080
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
ENV REQUEST_ORIGIN=http://devops:5000
|
||||
RUN go build
|
||||
RUN useradd -m appuser
|
||||
USER appuser
|
||||
CMD ["./server"]
|
Reference in a new issue