Skip to content

Commit

Permalink
Revert "feat(dockerfile):update dockerfile support riscv64" (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzzc-dev authored Jan 25, 2024
1 parent 3829538 commit f3edb4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64,linux/riscv64
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile
Expand Down
17 changes: 3 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
FROM xfan1024/openeuler:23.03-light
FROM postgres:12.16-alpine3.18

RUN mkdir /tools
WORKDIR /tools

RUN yum -y install wget make gcc readline-devel zlib-devel util-linux tzdata dos2unix

RUN wget https://ftp.postgresql.org/pub/source/v12.16/postgresql-12.16.tar.gz
RUN tar -xvf postgresql-12.16.tar.gz

WORKDIR /tools/postgresql-12.16
RUN ./configure --prefix=/usr/local/postgresql\
&& make -j16\
&& make install
RUN apk --no-cache add tzdata dos2unix

ENV TZ=Asia/Shanghai

Expand All @@ -23,4 +12,4 @@ RUN dos2unix -k /usr/local/bin/update-pg-password.sh /usr/local/bin/docker-entry

RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/update-pg-password.sh
RUN chmod +x /docker-entrypoint-initdb.d/10_eulixspace.sh
RUN chmod +x /docker-entrypoint-initdb.d/10_eulixspace.sh

0 comments on commit f3edb4c

Please sign in to comment.