Skip to content

Commit 9cf92fb

Browse files
committed
Fix test with Entrypoint
1 parent 7d7d483 commit 9cf92fb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN make build
2020

2121
FROM alpine
2222

23-
COPY --from=go_builder /go/src/github.com/openflagr/flagr/flagr /bin/flagr
23+
COPY --from=go_builder /go/src/github.com/openflagr/flagr/flagr .
2424

2525
ENV HOST=0.0.0.0
2626
ENV PORT=18000
@@ -37,4 +37,4 @@ ADD --chown=appuser:appgroup ./buildscripts/demo_sqlite3.db /data/demo_sqlite3.d
3737

3838
EXPOSE 18000
3939

40-
ENTRYPOINT [ "/bin/flagr" ]
40+
CMD "./flagr"

integration_tests/Dockerfile-Integration-Test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN make build
66

77
FROM alpine
88

9-
COPY --from=go_builder /go/src/github.com/openflagr/flagr/flagr /bin/flagr
9+
COPY --from=go_builder /go/src/github.com/openflagr/flagr/flagr .
1010

1111
ENV HOST=0.0.0.0
1212
ENV PORT=18000
@@ -16,4 +16,4 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
1616
USER appuser
1717
EXPOSE 18000
1818

19-
ENTRYPOINT [ "/bin/flagr" ]
19+
CMD "./flagr"

integration_tests/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ version: "3.6"
22

33
networks:
44
default:
5-
external:
6-
name: flagr_integration_tests
5+
external: true
6+
name: flagr_integration_tests
77

88
services:
99
mysql:

0 commit comments

Comments
 (0)