Skip to content

Commit

Permalink
Removed packr from Dockerfile (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
begmaroman authored Jul 23, 2024
1 parent 8ed7277 commit 81bd3ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
FROM golang:1.21 AS build

# INSTALL DEPENDENCIES
RUN go install github.com/gobuffalo/packr/v2/[email protected]
COPY go.mod go.sum /src/
RUN cd /src && go mod download

Expand All @@ -27,4 +26,4 @@ USER $USER
WORKDIR $HOME

EXPOSE 7900
CMD ["/bin/sh", "-c", "/app/dsrelay"]
CMD ["/app/dsrelay"]
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ version: "3.5"
services:
datastream-relay:
container_name: datastream-relay
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
image: datastream-relay
ports:
- 7900:7900
volumes:
- ./dist:/app
- ./config/environments/${DATASTREAM_NETWORK}/config.toml:/app/config.toml
command:
command:
- "/bin/sh"
- "-c"
- "/app/dsrelay --cfg /app/config.toml"

0 comments on commit 81bd3ec

Please sign in to comment.