Skip to content

Commit

Permalink
fix: base aio dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mguptahub committed May 23, 2024
1 parent efb8854 commit eea4a52
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-aio-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
version: ${{ env.BUILDX_VERSION }}
endpoint: ${{ env.BUILDX_ENDPOINT }}

- name: Build and Push Plane-Proxy to Docker Hub
- name: Build and Push to Docker Hub
uses: docker/build-push-action@v5.1.0
with:
context: ./no-use
Expand Down
13 changes: 12 additions & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM --platform=$BUILDPLATFORM ubuntu:22.04

# Set environment variables for non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -21,6 +21,17 @@ RUN apt-get update && apt-get install -y postgresql postgresql-contrib
RUN apt-get update && apt-get install -y redis-server

# Install MinIO

ARG TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "amd64" ]; then \
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio; \
elif [ "$TARGETPLATFORM" = "arm64" ]; then \
wget https://dl.min.io/server/minio/release/linux-arm64/minio -O /usr/local/bin/minio; \
else \
echo "Unsupported architecture: $TARGETPLATFORM"; exit 1; \
fi && \
chmod +x /usr/local/bin/minio

RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio && \
chmod +x /usr/local/bin/minio

Expand Down

0 comments on commit eea4a52

Please sign in to comment.