mirror of
https://github.com/soconnor0919/personal-website.git
synced 2026-02-05 00:06:36 -05:00
Initial commit
This commit is contained in:
38
Dockerfile
Normal file
38
Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
# Use the Node.js 18 Alpine Linux image as the base image
|
||||
FROM node:22-alpine
|
||||
|
||||
# Install GraphicsMagick
|
||||
RUN apk add --no-cache graphicsmagick ghostscript
|
||||
|
||||
# Add LaTeX support
|
||||
RUN apk add --no-cache \
|
||||
texlive \
|
||||
texlive-latex \
|
||||
texlive-xetex \
|
||||
texmf-dist-latexextra
|
||||
|
||||
# Set the working directory inside the container to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json files into the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install the dependencies specified in package.json
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm install
|
||||
|
||||
# Copy all the files from the local directory to the working directory in the container
|
||||
COPY . .
|
||||
|
||||
# # Clear previous build artifacts
|
||||
# RUN rm -rf .next
|
||||
|
||||
# # Build the application
|
||||
# RUN pnpm build
|
||||
|
||||
# # Ensure correct permissions
|
||||
# RUN chown -R node:node .
|
||||
# USER node
|
||||
|
||||
# Run the application in development mode
|
||||
CMD ["pnpm", "run", "dev"]
|
||||
Reference in New Issue
Block a user