File tree 3 files changed +7
-9
lines changed
3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
src /*
2
- vendor / *
2
+ vendor
3
3
node_modules /*
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ubuntu:20.04 as builder
3
3
# ENV LIBVIPS_VERSION 8.7.3
4
4
ENV LIBVIPS_VERSION 8.10.2
5
5
ENV DEP_VERSION v0.5.1
6
- ENV GOLANG_VERSION 1.15.8
6
+ ENV GOLANG_VERSION 1.16.4
7
7
ARG TARGETARCH amd64
8
8
9
9
# Installs libvips + required libraries
@@ -46,11 +46,10 @@ ENV PATH $WORKDIR/bin:/usr/local/go/bin:$PATH
46
46
47
47
RUN mkdir -p "$WORKDIR/src" "$WORKDIR/bin" && chmod -R 777 "$WORKDIR"
48
48
WORKDIR $WORKDIR
49
- # RUN curl -fsSL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 && chmod +x /usr/local/bin/dep
50
- ADD . /go/src/github.com/aldor007/mort
49
+ ADD . /go/src
51
50
52
51
# RUN cd /go/src/github.com/aldor007/mort && dep ensure -vendor-only
53
- RUN cd /go/src/github.com/aldor007/mort ; go build -o /go/mort cmd/mort/mort.go;
52
+ RUN cd /go/src; go build -o /go/mort cmd/mort/mort.go;
54
53
55
54
FROM ubuntu:20.04
56
55
@@ -73,13 +72,12 @@ RUN rm -rf /go/src; rm -rf /usr/share/; rm -rf /usr/include/
73
72
COPY --from=builder /usr/local/lib /usr/local/lib
74
73
RUN ldconfig
75
74
COPY --from=builder /go/mort /go/mort
76
- COPY --from=builder /go/src/github.com/aldor007/mort/configuration/config.yml /etc/mort/mort.yml
77
- RUN /go/mort -version
75
+ COPY --from=builder /go/src/configuration/config.yml /etc/mort/mort.yml
78
76
# add mime types
79
77
ADD http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/conf/mime.types?view=co /etc/mime.types
80
78
79
+ RUN /go/mort -version
81
80
# Run the outyet command by default when the container starts.
82
81
ENTRYPOINT ["/go/mort" ]
83
-
84
82
# Expose the server TCP port
85
83
EXPOSE 8080 8081
Original file line number Diff line number Diff line change 1
1
module github.com/aldor007/mort
2
2
3
- go 1.15
3
+ go 1.16
4
4
5
5
require (
6
6
github.com/aldor007/go-aws-auth v0.0.0-20180623204207-00898dfb9272
You can’t perform that action at this time.
0 commit comments