diff --git a/Dockerfile b/Dockerfile index 65ad5be..07444c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM golang:alpine as builder -WORKDIR /app +WORKDIR /build COPY . . RUN go build -o iphistory . FROM alpine:latest RUN apk --no-cache add ca-certificates -WORKDIR /root/ -COPY --from=builder /app/iphistory . -COPY --from=builder /app/web ./web +WORKDIR /app/ +COPY --from=builder /build/iphistory . +COPY --from=builder /build/web ./web EXPOSE 8080 CMD ["./iphistory"] diff --git a/docker-compose.yaml b/docker-compose.yaml index 50b0632..acc1212 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,8 +8,8 @@ services: ports: - "8080:8080" volumes: - - data:/app + - iphistory_data:/app volumes: - data: - driver: local + iphistory_data: + external: false diff --git a/ip_history.txt b/ip_history.txt deleted file mode 100644 index e69de29..0000000