Skip to content

Commit

Permalink
riscv architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
wzzc-dev committed Mar 5, 2024
1 parent 09664b1 commit 9b774a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM alpine:3.12.0 AS base_image
FROM xfan1024/openeuler:23.03-light AS base_image

FROM base_image AS build

RUN apk add --no-cache curl build-base openssl openssl-dev zlib-dev linux-headers pcre-dev git
RUN yum install -y curl gcc openssl openssl-devel zlib-devel kernel-headers pcre-devel git make

RUN mkdir nginx

RUN git clone https://github.com/ao-space/nginx-vod-module.git
Expand All @@ -24,7 +25,7 @@ RUN make install
RUN rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default

FROM base_image
RUN apk add --no-cache ca-certificates openssl pcre zlib
RUN yum install -y ca-certificates openssl pcre zlib
COPY --from=build /usr/local/nginx /usr/local/nginx
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
ENTRYPOINT ["/usr/local/nginx/sbin/nginx"]
Expand Down

0 comments on commit 9b774a4

Please sign in to comment.