forked from matrix-org/matrix.to
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Docker with updated dependencies and domains (#1)
- Adds `chat.blender.org` and `chat.staging.blender.org` to `trustedWebInstances` - Update `caniuse` and move `devDependencies` to `dependencies` - Replace deprecated use of `fs.rmdir()` with `fs.rm()` - Create `Dockerfile` that has a build staging using `yarn` and serves the static build using `nginx-unprivileged`
- Loading branch information
1 parent
a51e28e
commit 0953863
Showing
5 changed files
with
21 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Stage 1: Build the application | ||
FROM node:20-alpine as builder | ||
WORKDIR /app | ||
COPY . ./ | ||
ENV NODE_ENV=production | ||
RUN yarn install --frozen-lockfile && yarn run build | ||
|
||
# Stage 2: Serve the application with unprivileged NGINX | ||
FROM nginxinc/nginx-unprivileged as production | ||
|
||
ARG DOCROOT=/usr/share/nginx/html | ||
COPY --from=builder /app/build ${DOCROOT} | ||
|
||
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
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