This commit is contained in:
2025-01-03 17:45:23 +00:00
parent a477fc711d
commit a95a0e5ad0
1564 changed files with 1315 additions and 747 deletions

View File

@@ -0,0 +1,23 @@
# Use Base Image: What we are using to make Docker File, eg ubuntu container/ image, node etc
FROM node:lts-alpine
# Make Dir (make sure directory exists)
RUN mkdir -p /usr/src/app
# Set the working directory: using the correct folder
WORKDIR /usr/src/app
# Copy files into folder (no need to reinstall every single time)
COPY package.json .
# Install the dependencies
RUN yarn install
# Copy the rest of the files
COPY . .
# Expose the port
EXPOSE 3000
# Execute Command
CMD ["yarn", "dev"]