Write a Dockerfile that allows SSR #2

Open
opened 2024-09-28 11:10:22 +00:00 by Erik · 1 comment
Owner

see here

see [here](https://docs.astro.build/en/recipes/docker/)
Author
Owner

A static would look like this:

FROM node:lts AS build
WORKDIR /app
COPY . .
RUN npm i
RUN npm run build

FROM httpd:2.4 AS runtime
COPY --from=build /app/dist /usr/local/apache2/htdocs/
EXPOSE 80
A static would look like this: ```Dockerfile FROM node:lts AS build WORKDIR /app COPY . . RUN npm i RUN npm run build FROM httpd:2.4 AS runtime COPY --from=build /app/dist /usr/local/apache2/htdocs/ EXPOSE 80 ```
This repo is archived. You cannot comment on issues.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Erik/starlight#2
No description provided.