Skip to content

Commit

Permalink
install libssl1.1 for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia committed Aug 9, 2024
1 parent 3e6ef30 commit 5c1894b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.new
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ RUN mv /artifact/backend-${TARGETARCH}/ryot /artifact/ryot
RUN chmod +x /artifact/ryot

FROM $NODE_BASE_IMAGE
ARG TARGETARCH
ENV TARGETARCH=${TARGETARCH}
LABEL org.opencontainers.image.source="https://github.com/IgnisDa/ryot"
ENV FRONTEND_UMAMI_SCRIPT_URL="https://umami.diptesh.me/script.js"
ENV FRONTEND_UMAMI_WEBSITE_ID="5ecd6915-d542-4fda-aa5f-70f09f04e2e0"
COPY --from=caddy:2.7.5 /usr/bin/caddy /usr/local/bin/caddy
RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates && rm -rf /var/lib/apt/lists/*
RUN npm install --global [email protected] && concurrently --version
RUN useradd -m -u 1001 ryot
RUN if [ ${TARGETARCH} == "arm64" ]; then apt-get update && apt-get install -y --no-install-recommends wget && wget http://ftp.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_arm64.deb && dpkg -i libssl1.1_1.1.1w-0+deb11u1_arm64.deb && rm -rf libssl1.1_1.1.1w-0+deb11u1_arm64.deb && apt-get remove wget && rm -rf rm -rf /var/lib/apt/lists/*; fi
WORKDIR /home/ryot
USER ryot
COPY ci/Caddyfile /etc/caddy/Caddyfile
Expand All @@ -46,4 +49,4 @@ CMD [ \
"PORT=3000 npx remix-serve ./build/server/index.js", \
"BACKEND_PORT=5000 /usr/local/bin/ryot", \
"caddy run --config /etc/caddy/Caddyfile" \
]
]

0 comments on commit 5c1894b

Please sign in to comment.