Updated website
Some checks failed
Build and publish / Build Container (push) Failing after 21s
Build and publish / Deploy Container (push) Has been skipped

This commit is contained in:
2026-06-12 02:03:03 -04:00
parent e706057683
commit 4a97d4bbd3
45 changed files with 1069 additions and 21253 deletions

View File

@@ -1,28 +1,3 @@
FROM node:16 as build
FROM git.zakscode.com/momentum/momentum:latest
# Variables
ARG NODE_ENV=prod
ARG NODE_OPTIONS="--max_old_space_size=4096"
ENV NG_CLI_ANALYTICS=ci \
NODE_ENV=${NODE_ENV} \
NODE_OPTIONS=${NODE_OPTIONS}
# Setup
RUN npm config set unsafe-perm true && \
mkdir /app
WORKDIR /app
COPY . .
# Install
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
# Build
RUN BUILD_MODE=$([ "$NODE_ENV" = "prod" ] && echo "prod" || echo "dev") && \
if [ ! -d "dist" ]; then npm run "build:$BUILD_MODE"; fi
# Use Nginx to serve
FROM nginx:1.20-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY docker/robots.txt /usr/share/nginx/html/robots.txt
COPY docker/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
COPY public /app/server/public