new-personal-site/Dockerfile
Benjamin Toby ee4cb23db2 Updates
2025-02-06 10:03:10 +01:00

26 lines
426 B
Docker

FROM node:22-bookworm
RUN apt update
RUN apt install -y curl bash nano wget zip unzip
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:${PATH}"
RUN mkdir /app
# Set working directory
WORKDIR /app
RUN touch /root/.bashrc
RUN echo 'alias ll="ls -laF"' >/root/.bashrc
COPY . /app/.
# Install dependencies
RUN bun install
RUN bun run build
# Run the app
CMD ["bun", "start"]