You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
405 B
18 lines
405 B
2 years ago
|
FROM golang:1.19-bullseye
|
||
|
LABEL author="Thomas Bellembois"
|
||
|
|
||
|
# Copying sources.
|
||
|
WORKDIR /go/src/codefirst.iut.uca.fr/git/thomas.bellembois/codefirst-dockerproxy-clientdrone/v2/
|
||
|
COPY . .
|
||
|
|
||
|
# Installing.
|
||
|
RUN go install -v ./...
|
||
|
RUN chmod +x /go/bin/codefirst-dockerproxy-clientdrone
|
||
|
|
||
|
# Copying entrypoint.
|
||
|
COPY entrypoint.sh /
|
||
|
RUN chmod +x /entrypoint.sh
|
||
|
|
||
|
USER root
|
||
|
EXPOSE 8081
|
||
|
ENTRYPOINT [ "/entrypoint.sh" ]
|