Add Next App

This commit is contained in:
Benjamin Toby
2024-10-06 08:27:52 +01:00
parent 4051cdb3ab
commit 5de8745bcf
19 changed files with 2290 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
# Set Node.js version
FROM node:20-alpine
RUN mkdir /app
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
RUN apk update
RUN apk add nano
RUN touch /root/.bashrc
RUN echo 'alias ll="ls -laF"' > /root/.bashrc
COPY . /app/.
# Install dependencies
RUN npm install
RUN npm run build
# Run the app
CMD ["npm", "start"]