diff --git a/.dockerignore b/.dockerignore index 139de497..f4cc4f6c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ -.git client/dist -client/node_modules \ No newline at end of file +client/node_modules diff --git a/Dockerfile b/Dockerfile index f8cc86d5..9a766e8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --update git make build-base && \ WORKDIR /go/src/github.com/khlieng/dispatch COPY . /go/src/github.com/khlieng/dispatch -RUN go build . +RUN chmod +x install.sh && ./install.sh # Runtime FROM alpine @@ -14,7 +14,7 @@ FROM alpine RUN apk add --update ca-certificates && \ rm -rf /var/cache/apk/* -COPY --from=build /go/src/github.com/khlieng/dispatch/dispatch /dispatch +COPY --from=build /go/bin/dispatch /dispatch EXPOSE 80/tcp diff --git a/install.sh b/install.sh index b8acbb42..494ec8a8 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh - Import="github.com/khlieng/dispatch/version"