-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
31 lines (25 loc) · 1.16 KB
/
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
ARG UTASK_IMAGE=ovhcom/utask:v1.8.3
FROM fufuhu/sql-migrate AS sql-migrate
FROM ${UTASK_IMAGE} AS builder
WORKDIR /go/src/github.com/ovh/utask
COPY init init
COPY plugins plugins
COPY functions functions
RUN make
FROM frolvlad/alpine-glibc:alpine-3.10
RUN apk add --no-cache curl bash
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it.sh
RUN chmod +x /wait-for-it.sh
COPY --from=sql-migrate /bin/sql-migrate /usr/local/bin/sql-migrate
COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
COPY --from=builder /go/src/github.com/ovh/utask/init /app/init
COPY --from=builder /go/src/github.com/ovh/utask/utask /app/utask
COPY --from=builder /go/src/github.com/ovh/utask/sql /app/sql
COPY --from=builder /go/src/github.com/ovh/utask/functions /app/functions
COPY --from=builder /app/static /app/static
COPY ./templates /app/templates
COPY ./dbconfig.yml /app/dbconfig.yml
RUN chmod +x /app/utask
EXPOSE 8081
WORKDIR /app
CMD ["/app/utask"]