Skip to content

Commit

Permalink
Created dev dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BreathXV committed Jun 5, 2024
1 parent 9a8792f commit ea3115c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM golang:1.22.3 as builder

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod tidy

COPY . .

RUN go build -o rwapi .

FROM ubuntu:latest

RUN apk --no-cache add ca-certificates curl jq

WORKDIR /root/

COPY --from=builder /app/rwapi .

COPY test.sh .

ENV DATABASE_PATH :memory:

EXPOSE 8080

CMD ["sh", "test.sh"]

0 comments on commit ea3115c

Please sign in to comment.