This commit is contained in:
parent
1a3e14040c
commit
1ad4382e97
3 changed files with 62 additions and 0 deletions
31
Dockerfile-qa
Normal file
31
Dockerfile-qa
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
FROM golang:alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/qa
|
||||
|
||||
ADD qa/*.go ./
|
||||
ADD qa/api/*.go ./api/
|
||||
ADD libfic ../libfic/
|
||||
ADD settings ../settings/
|
||||
|
||||
RUN go get -d -v
|
||||
RUN go build -v
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
EXPOSE 8083
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
ENTRYPOINT ["/srv/qa", "--bind=:8083"]
|
||||
|
||||
VOLUME /srv/htdocs-qa/
|
||||
|
||||
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/qa/qa /srv/qa
|
||||
COPY qa/static/index.html /srv/htdocs-qa/
|
||||
COPY qa/static/css/bootstrap.min.css frontend/static/css/fic.css frontend/static/css/glyphicon.css /srv/htdocs-qa/css/
|
||||
COPY frontend/static/fonts /srv/htdocs-qa/fonts
|
||||
COPY frontend/static/img/ /srv/htdocs-qa/img/
|
||||
COPY qa/static/js/qa.js frontend/static/js/angular.min.js qa/static/js/angular-resource.min.js frontend/static/js/angular-route.min.js frontend/static/js/angular-sanitize.min.js frontend/static/js/bootstrap.min.js frontend/static/js/common.js frontend/static/js/i18n frontend/static/js/jquery.min.js /srv/htdocs-qa/js/
|
||||
Reference in a new issue