Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 26, 2024
1 parent eb94db9 commit b2d02b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ jobs:
platform:
- linux/amd64
- linux/arm64

services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

steps:
- name: Prepare
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /build

COPY backend/ .

ENV DATABASE_URL=postgres://postgres:postgres@localhost/postgres
RUN cargo install sqlx-cli --no-default-features --features native-tls,postgres && cargo sqlx prepare

RUN --mount=type=cache,target=/build/target \
--mount=type=cache,target=/usr/local/cargo/registry \
Expand Down

0 comments on commit b2d02b5

Please sign in to comment.