diff --git a/Dockerfile b/Dockerfile index bd70725..b1c5b69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM golang:1.21 AS build # INSTALL DEPENDENCIES -RUN go install github.com/gobuffalo/packr/v2/packr2@v2.8.3 COPY go.mod go.sum /src/ RUN cd /src && go mod download @@ -27,4 +26,4 @@ USER $USER WORKDIR $HOME EXPOSE 7900 -CMD ["/bin/sh", "-c", "/app/dsrelay"] +CMD ["/app/dsrelay"] diff --git a/docker-compose.yml b/docker-compose.yml index 4110506..b30a22e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,9 @@ version: "3.5" services: datastream-relay: container_name: datastream-relay + build: + context: . + dockerfile: Dockerfile restart: unless-stopped image: datastream-relay ports: @@ -10,7 +13,7 @@ services: volumes: - ./dist:/app - ./config/environments/${DATASTREAM_NETWORK}/config.toml:/app/config.toml - command: + command: - "/bin/sh" - "-c" - "/app/dsrelay --cfg /app/config.toml"