Spaces:
Sleeping
Sleeping
File size: 451 Bytes
caedf2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM oven/bun:1.3.14
# Create a non-root user with
RUN useradd -m -u 2000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Set working directory
WORKDIR /app
# COPY --chown=user bun.lockb bun.lockb
COPY --chown=user package.json package.json
RUN bun install
# Copy the rest of the application source
COPY --chown=user . /app
# Expose the port if needed (optional, depending on the hosting environment)
EXPOSE 7860
CMD ["bun", "app.js"]
|