refactor: dockerfile
This commit is contained in:
parent
dfac4c0fe9
commit
34c8f03571
12
Dockerfile
12
Dockerfile
@ -1,19 +1,7 @@
|
|||||||
FROM oven/bun:1.1.40-slim
|
FROM oven/bun:1.1.40-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN bun i
|
RUN bun i
|
||||||
# COPY package.json bun.lockb ./
|
|
||||||
# RUN bun install --frozen-lockfile
|
|
||||||
|
|
||||||
# Copy source code
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose the application port
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Start the application
|
|
||||||
CMD ["bun", "run", "start"]
|
CMD ["bun", "run", "start"]
|
Loading…
x
Reference in New Issue
Block a user