From a7fa68c2c8bbf9da8652ae07e6ebb46d934c8908 Mon Sep 17 00:00:00 2001 From: dallascrichmond <113049138+dallascrichmond@users.noreply.github.com> Date: Fri, 1 Nov 2024 15:57:16 -0700 Subject: [PATCH] chore(ci): Uncommented readiness probe (#60) --- backend/Dockerfile | 1 - frontend/Dockerfile | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 8403474..bfdf474 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -8,5 +8,4 @@ RUN npm ci && \ npm run build # Run in dev mode, `npm run serve` for production -# CMD ["npm", "run", "serve", "--no-update-notifier", "--max-old-space-size=50"] CMD ["npm", "run", "serve", "--no-update-notifier", "--max-old-space-size=50"] diff --git a/frontend/Dockerfile b/frontend/Dockerfile index cbe4050..720a1ea 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,40 +1,21 @@ # Base image for the container FROM node:20.17.0 AS build -# Set environment variables -# ENV npm_config_cache=/app/.npm -# ENV APP_USER=1011540000 - -# Create user and group -# RUN groupadd --gid ${APP_USER} appGroup && \ -# useradd --uid ${APP_USER} --gid appGroup --home /app ${APP_USER} - -# Switch to the new user -# USER ${APP_USER} - # Set the working directory WORKDIR /app/ # Copy package.json and package-lock.json first to leverage Docker cache -# COPY --chown=${APP_USER} package.json package-lock.json ./ COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code -# COPY --chown=${APP_USER} . ./ COPY . /app # Ensure TypeScript is installed and compile the project RUN npm run build -# Expose the port that the app runs on -# EXPOSE 5173 - -# Run the application in production mode -# CMD ["npm", "run", "serve", "--no-update-notifier", "--max-old-space-size=50"] - FROM caddy:2.8.4-alpine RUN apk add --no-cache ca-certificates