Skip to content

Commit

Permalink
Dockerfile内で実行権限の付与、シェルの設定
Browse files Browse the repository at this point in the history
  • Loading branch information
Till0196 committed Apr 13, 2024
1 parent c875fdc commit a62a470
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.stg
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ WORKDIR /app
COPY --from=builder /tmp/release/${APP_NAME} /usr/local/bin
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN cargo install sqlx-cli --no-default-features --features native-tls,postgres
COPY migrations /app/migrations/
COPY demo.sql /app/migrations/99999999999999_demo.sql
COPY stg-entrypoint.sh /app/stg-entrypoint.sh
RUN chmod +x /app/stg-entrypoint.sh

ENTRYPOINT ["/app/stg-entrypoint.sh"]

0 comments on commit a62a470

Please sign in to comment.