personal-site/Dockerfile
Benjamin Toby a3732103bf Bugfix
2024-10-01 16:17:51 +01:00

25 lines
373 B
Docker

# Set Node.js version
FROM node: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"]