-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" \ | ||
] | ||
] |