Skip to content

Commit 6464ef1

Browse files
committed
Dockerfile.prod -> Dockerfile.github-action
1 parent bf36ea2 commit 6464ef1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/docker_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
mkdir app
6565
cp target/release/actix-web-rest-api-with-jwt app/actix-web-rest-api-with-jwt
6666
cp diesel.toml app/diesel.toml
67-
cp Dockerfile.prod app/Dockerfile
67+
cp Dockerfile.github-action app/Dockerfile
6868
cd app
6969
touch .env
7070
tar -czvf ../app.tar.gz .

Dockerfile.prod renamed to Dockerfile.github-action

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# NOTE: This Dockerfile is only used for GitHub Actions. For local development, please use 'Dockerfile.local'
12
# base image
23
FROM debian:buster-slim
34

@@ -14,7 +15,7 @@ RUN apt-get update; \
1415
COPY ./actix-web-rest-api-with-jwt .
1516
COPY ./diesel.toml .
1617
COPY ./.env .
17-
COPY wait-for-it.sh .
18+
COPY ./wait-for-it.sh .
1819

1920
# expose port
2021
EXPOSE 8000

Dockerfile.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN apt-get update; \
4444
COPY --from=build /app/target/debug/actix-web-rest-api-with-jwt .
4545
COPY --from=build /app/.env .
4646
COPY --from=build /app/diesel.toml .
47-
COPY wait-for-it.sh .
47+
COPY ./wait-for-it.sh .
4848

4949
# expose port
5050
EXPOSE 8000

0 commit comments

Comments
 (0)