-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (29 loc) · 959 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM debian:oldstable
##RUN echo "deb http://ftp.uk.debian.org/debian/ unstable main" | tee -a /etc/apt/sources.list
RUN apt-get update -y
RUN apt-get install software-properties-common -y
#RUN add-apt-repository ppa:/gophers/archive
##RUN apt-update -y
##RUN add-apt-repository ppa:kagamih/dlib
##RUN apt-get update -y
#RUN apt-get -t buster-backports install golang-1.14-go -y
#RUN apt-get install golang-1.15-go -y
RUN apt-get install curl -y
RUN apt-get install git -y
RUN apt-get install golang -y
RUN apt-get install libdlib-dev -y
RUN apt-get install libblas-dev -y
RUN apt-get install liblapack-dev -y
RUN apt-get install libjpeg62-turbo-dev -y
ENV GOOS=linux
ENV GOARCH=amd64
RUN mkdir app
COPY . /app
WORKDIR /app
RUN apt-get install build-essential -y
ENV PATH=$PATH:/usr/local/go/bin
RUN go mod download
RUN export CPATH="/usr/include/hdf5/serial/"
RUN go build -v main.go
ENTRYPOINT /app/main
EXPOSE 8080