Skip to content

Instantly share code, notes, and snippets.

@1kevinson
Created November 24, 2023 19:59
Show Gist options
  • Save 1kevinson/86502239a0b29d243d3378f6428db60c to your computer and use it in GitHub Desktop.
Save 1kevinson/86502239a0b29d243d3378f6428db60c to your computer and use it in GitHub Desktop.
Simple Elysia js dockerfile
FROM oven/bun:1-alpine
LABEL description="backend application"
WORKDIR /app
COPY package.json .
RUN bun install
RUN bun install --frozen-lockfile --production
COPY . .
ENV NODE_ENV production
CMD ["bun", "src/index.js"]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment