Skip to content

Commit

Permalink
Add Dockerfiles for egress and freddie
Browse files Browse the repository at this point in the history
  • Loading branch information
Crosse committed Nov 2, 2023
1 parent caa830a commit 3751c54
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile.egress
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.20-alpine

WORKDIR /usr/src/app

COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN go build -v -o /usr/local/bin/egress ./egress/cmd/...

EXPOSE 8000/tcp

CMD ["egress"]
13 changes: 13 additions & 0 deletions Dockerfile.freddie
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.20-alpine

WORKDIR /usr/src/app

COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN go build -v -o /usr/local/bin/freddie ./freddie/...

EXPOSE 9000/tcp

CMD ["freddie"]
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'

services:
freddie:
image: freddie
build:
dockerfile: ./Dockerfile.freddie
ports:
- 9000:9000/tcp
egress:
image: egress
build:
dockerfile: ./Dockerfile.egress
ports:
- 8000:8000/tcp

0 comments on commit 3751c54

Please sign in to comment.