@@ -5,6 +5,7 @@ ARG UTASK_IMAGE=zhouzhuojie/utask:beta-with-middleware
5
5
6
6
7
7
8
+ FROM fufuhu/sql-migrate AS sql-migrate
8
9
FROM ${UTASK_IMAGE} AS builder
9
10
WORKDIR /go/src/github.com/ovh/utask
10
11
COPY init init
@@ -15,13 +16,19 @@ RUN make
15
16
16
17
17
18
18
- FROM ${UTASK_IMAGE}
19
- COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
20
- COPY --from=builder /go/src/github.com/ovh/utask/init /app/init
21
- COPY --from=builder /go/src/github.com/ovh/utask/utask /app/utask
22
- COPY --from=builder /go/src/github.com/ovh/utask/sql /app/sql
23
- RUN go get -v github.com/rubenv/sql-migrate/...
24
- COPY ./templates /app/templates
25
- COPY ./dbconfig.yml /app/dbconfig.yml
19
+ FROM frolvlad/alpine-glibc:alpine-3.10
20
+ RUN apk add --no-cache curl bash
21
+ ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it.sh
22
+ RUN chmod +x /wait-for-it.sh
23
+ COPY --from=sql-migrate /bin/sql-migrate /usr/local/bin/sql-migrate
24
+ COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
25
+ COPY --from=builder /go/src/github.com/ovh/utask/init /app/init
26
+ COPY --from=builder /go/src/github.com/ovh/utask/utask /app/utask
27
+ COPY --from=builder /go/src/github.com/ovh/utask/sql /app/sql
28
+ COPY --from=builder /app/static /app/static
29
+ COPY ./templates /app/templates
30
+ COPY ./dbconfig.yml /app/dbconfig.yml
26
31
RUN chmod +x /app/utask
32
+ EXPOSE 8081
27
33
WORKDIR /app
34
+ CMD ["/app/utask" ]
0 commit comments