-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (27 loc) · 855 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
FROM golang:1.12.4-stretch as builder
LABEL maintainer="Wouter van Os <[email protected]>"
RUN mkdir /build
WORKDIR /build
COPY src .
RUN go build
FROM golang:1.12.4-stretch
LABEL maintainer="Wouter van Os <[email protected]>"
ARG BUILD_DATE
ARG VCS_REF
ARG VCS_URL
ARG VERSION
LABEL org.label-schema.schema-version="1.1"
LABEL org.label-schema.name="wouter0100/quepasa"
LABEL org.label-schema.description="Write WhatsApp bots with https"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.vcs-url=$VCS_URL
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.version=$VERSION
RUN mkdir /app
WORKDIR /app
COPY --from=builder /build/quepasa ./quepasa
COPY --from=builder /build/views ./views
COPY --from=builder /build/assets ./assets
COPY --from=builder /build/migrations ./migrations
EXPOSE 3000
CMD ["/app/quepasa"]