-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove arm sharp Dockerfile, test docker-compose.yml
- Loading branch information
Showing
5 changed files
with
50 additions
and
3 deletions.
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
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ RUN yarn install --frozen-lockfile | |
|
||
# override sharp 0.32.6 with 0.33.3, fails without this | ||
RUN yarn remove sharp | ||
RUN yarn add --arch=arm64 --platform=linux --libc=musl --ignore-engines [email protected] | ||
RUN yarn add --ignore-engines [email protected] | ||
|
||
COPY . . | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Dockerfile from Astro docs | ||
|
||
# alpine is fine | ||
# node:22.1.0-bookworm, node:20.13.1-slim, node:20.13.1-alpine | ||
ARG NODE_IMAGE=node:20.13.1-alpine | ||
|
||
FROM ${NODE_IMAGE} AS base | ||
WORKDIR /app | ||
|
||
# for alpine | ||
RUN apk add --no-cache git | ||
|
||
FROM base AS build | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install --frozen-lockfile | ||
|
||
# override sharp 0.32.6 with 0.33.3, fails without this | ||
RUN yarn remove sharp | ||
# RUN yarn add --arch=arm64 --platform=linux --libc=musl --ignore-engines [email protected] | ||
RUN yarn add --ignore-engines [email protected] | ||
|
||
COPY . . | ||
|
||
# build time only env var | ||
ARG ARG_SITE_URL | ||
ENV SITE_URL=$ARG_SITE_URL | ||
RUN echo "SITE_URL=$SITE_URL" | ||
|
||
ARG ARG_PLAUSIBLE_SCRIPT_URL | ||
ENV PLAUSIBLE_SCRIPT_URL=$ARG_PLAUSIBLE_SCRIPT_URL | ||
RUN echo "PLAUSIBLE_SCRIPT_URL=$PLAUSIBLE_SCRIPT_URL" | ||
|
||
RUN yarn build | ||
|
||
FROM nginx:stable-alpine3.17-slim AS runtime | ||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf | ||
|
||
# sufficient for SSG | ||
COPY --from=build /app/dist /usr/share/nginx/html | ||
EXPOSE 8080 | ||
|
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
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