You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
382 B
Docker
28 lines
382 B
Docker
FROM oven/bun
|
|
|
|
# NodeJS app lives here
|
|
WORKDIR /app
|
|
|
|
# Set production environment
|
|
ENV NODE_ENV=production
|
|
|
|
|
|
# Throw-away build stage to reduce size of final image
|
|
|
|
# Install packages needed to build node modules
|
|
|
|
COPY ./package.json ./
|
|
COPY ./bun.lock ./
|
|
|
|
RUN bun install
|
|
|
|
COPY . .
|
|
# COPY ./.env.example ./.env
|
|
|
|
RUN bun run build
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["bun", "build/index.js"]
|
|
|