mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-02 06:19:26 +00:00
Remove docker compose from integration tests because of the testcontainers dependency nightmare (#34)
* Remove docker compose from integration tests because of the testcontainers dependency nightmare
This commit is contained in:
15
test/Dockerfile
Normal file
15
test/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM golang:1.22-alpine as builder
|
||||
|
||||
ARG ARG_VERSION
|
||||
ENV VERSION $ARG_VERSION
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
FROM builder AS build-test-app
|
||||
RUN CGO_ENABLED=0 \
|
||||
go build -ldflags="-s -w" -o whatismyip ./cmd
|
||||
|
||||
FROM scratch AS test
|
||||
COPY --from=build-test-app /app/whatismyip /usr/bin/
|
||||
ENTRYPOINT ["whatismyip"]
|
Reference in New Issue
Block a user