mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 16:18:17 +00:00
Create Dockerfile
This commit is contained in:
parent
0655a0d8a7
commit
d9901a4285
1 changed files with 20 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Use the official Bun image as base
|
||||
FROM oven/bun:1
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and bun.lockb (if exists)
|
||||
COPY package*.json bun.lockb* ./
|
||||
|
||||
# Install dependencies
|
||||
RUN bun install
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Expose the port your Express server runs on
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the server
|
||||
CMD ["bun", "run", "start"]
|
||||
Loading…
Add table
Reference in a new issue