- Updated the description in ProjectTasksPage to a placeholder. - Commented out the display of assigned email in ProjectTasksList. - Removed the dashboard link from the navigation items. - Changed the main link in the navigation to point to projects instead of the dashboard. - Commented out the LanguageSwitcher and user role display in the navigation. - Translated "Project Location" to "Lokalizacja projektu" in ProjectMap. - Commented out the instruction for using the layer control in ProjectMap. - Removed the label "Coordinates:" from the coordinates display in ProjectMap. - Updated project and contract subtitles in translations to placeholders. - Added a new empty validation schema file.
40 lines
1.0 KiB
Docker
40 lines
1.0 KiB
Docker
# Use Node.js 22.11.0 as the base image
|
|
FROM node:22.11.0
|
|
|
|
# Install git
|
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# If building from a git repository, clone it
|
|
# This will be used when the build context doesn't include source files
|
|
ARG GIT_REPO_URL
|
|
ARG GIT_BRANCH=main
|
|
ARG GIT_COMMIT
|
|
|
|
# If GIT_REPO_URL is provided, clone the repo; otherwise copy local files
|
|
RUN if [ -n "$GIT_REPO_URL" ]; then \
|
|
git clone --branch ${GIT_BRANCH} ${GIT_REPO_URL} . && \
|
|
if [ -n "$GIT_COMMIT" ]; then git checkout ${GIT_COMMIT}; fi; \
|
|
fi
|
|
|
|
# Copy package.json and package-lock.json (if not cloned from git)
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the app (if not cloned from git)
|
|
RUN if [ -z "$GIT_REPO_URL" ]; then echo "Copying local files..."; fi
|
|
COPY . .
|
|
|
|
# Build the application for production
|
|
RUN npm run build
|
|
|
|
# Expose the default Next.js port
|
|
EXPOSE 3000
|
|
|
|
# Start the production server
|
|
CMD ["npm", "start"]
|