First Commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
# Set Node.js version
|
||||
FROM node:20-alpine
|
||||
|
||||
RUN apk update && apk add --no-cache curl bash nano
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user