Skip to content

Commit

Permalink
chore(ci): Uncommented readiness probe (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
dallascrichmond authored Nov 1, 2024
1 parent 0483871 commit a7fa68c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
19 changes: 0 additions & 19 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit a7fa68c

Please sign in to comment.