Skip to content

Commit 988c5aa

Browse files
authored
Merge pull request #7 from CodeShellDev/main
Update Dev for Go Testing
2 parents 2f7836c + 9e4bc48 commit 988c5aa

File tree

7 files changed

+340
-199
lines changed

7 files changed

+340
-199
lines changed

Dockerfile

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
FROM python:3.9-alpine
2-
3-
WORKDIR /app
4-
5-
RUN pip install flask requests
6-
7-
COPY . .
8-
9-
ENV PORT=8880
10-
11-
EXPOSE ${PORT}
12-
13-
CMD ["python", "app.py"]
1+
FROM golang:1.24
2+
3+
WORKDIR /app
4+
5+
COPY go.mod go.sum ./
6+
7+
RUN go mod download
8+
9+
COPY *.go ./
10+
11+
RUN CGO_ENABLED=0 GOOS=linux go build -o /secured-signal-api
12+
13+
ENV PORT=8880
14+
15+
EXPOSE ${PORT}
16+
17+
CMD ["/secured-signal-api"]

app.py

Lines changed: 0 additions & 186 deletions
This file was deleted.

go.mod

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module github.com/codeshelldev/secured-signal-api
2+
3+
go 1.24.4
4+
5+
require go.uber.org/zap v1.27.0
6+
7+
require go.uber.org/multierr v1.10.0 // indirect

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
2+
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
3+
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
4+
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=

0 commit comments

Comments
 (0)