21 lines
349 B
Docker
21 lines
349 B
Docker
# Use the official bun image as a base
|
|
FROM oven/bun:latest
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Create a volume for the working directory
|
|
VOLUME /app
|
|
|
|
# Copy project files
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN bun install
|
|
|
|
# Expose the port your app runs on
|
|
EXPOSE 3000
|
|
|
|
# Command to run the application
|
|
CMD ["bun", "run", "/app/server.ts"]
|