diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 728fa0f0..211b6a37 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -74,7 +74,8 @@ jobs: # labels: ${{ steps.meta.outputs.labels }} # platforms: linux/amd64,linux/arm64 - - name: replace psycopg binary to c version + + - name: replace psycopg binary to c version for arm/v7 run: | sed -i "s|psycopg\[binary\]==3.2.13|psycopg\[c\]==3.2.13|" ./src/requirements.txt diff --git a/docker/Dockerfile b/docker/Dockerfile index e1b12e10..79cf12bf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -61,7 +61,9 @@ RUN apk add --no-cache \ build-base \ pkgconfig \ python3-dev \ + postgresql-dev \ libffi-dev \ + libpq \ linux-headers \ rust \ cargo \ @@ -133,7 +135,7 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ # Copy in the runtime script, essential. COPY ./docker/entrypoint.sh /entrypoint.sh -# +# Expose ports on the container EXPOSE 10086 WORKDIR $WGDASH/src