-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
306 changed files
with
484 additions
and
1,335 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Use Node.js LTS (Long Term Support) image | ||
FROM node:18.20.5-alpine AS base | ||
|
||
# Create app directory | ||
WORKDIR /app | ||
|
||
# Copy package files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
RUN npm install --save-dev @babel/plugin-proposal-private-property-in-object | ||
|
||
# Run | ||
FROM base | ||
|
||
COPY --from=base /app/node_modules /app/node_modules | ||
|
||
# Expose the development port | ||
EXPOSE 3000 | ||
|
||
# Set host to allow external connections | ||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
ENV NODE_OPTIONS="--openssl-legacy-provider" | ||
|
||
# Start development server | ||
CMD ["npm", "run", "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,8 @@ | ||
FROM node:18.12.1-alpine as build | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the package.json and package-lock.json files to the container | ||
COPY package*.json ./ | ||
|
||
# Install the dependencies | ||
RUN npm install | ||
|
||
RUN npm install --save-dev @babel/plugin-proposal-private-property-in-object | ||
|
||
# Set the NODE_OPTIONS environment variable | ||
ENV NODE_OPTIONS="--openssl-legacy-provider" | ||
|
||
|
||
# Copy the entire app directory to the container | ||
COPY . . | ||
|
||
# Generate the Nuxt.js static files | ||
RUN npm version patch --git-tag-version false && npx nuxt generate | ||
|
||
# Use the official Nginx image as the base image | ||
FROM nginx:1.22.1 | ||
|
||
ARG ENV_TYPE | ||
ARG WEB_FOLDER | ||
|
||
# WORKDIR /var/www/indrz | ||
WORKDIR /usr/share/nginx/html | ||
|
||
# COPY devops/docker/local/nginx/conf/allowed.conf /etc/nginx/allowed.conf | ||
# COPY devops/docker/local/nginx/conf/locations.conf /etc/nginx/locations.conf | ||
|
||
|
||
# Copy the NGINX configuration file to the container | ||
COPY devops/docker/local/nginx/conf/default-dev.conf /etc/nginx/conf.d/default.conf | ||
|
||
# RUN mkdir -p /var/www/indrz | ||
|
||
# Copy the built static site from the previous stage to the container | ||
#COPY --from=build ./app/dist/ /var/www/indrz | ||
COPY --from=build ./app/dist /usr/share/nginx/html | ||
|
||
# Expose port 80 | ||
# EXPOSE 80 | ||
|
||
# Start Nginx when the container starts | ||
# CMD ["nginx", "-g", "daemon off;"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.