butterflyvu/Dockerfile

39 lines
1.3 KiB
Text
Raw Permalink Normal View History

#########################################################
# SudoVanilla will never use images from Docker Hub, as #
# Docker Hub is proprietary. SudoVanilla hosts slim #
# versions of Bun's Docker image on SudoVanilla Ark. #
#########################################################
2024-06-05 19:48:11 -05:00
#########################################################
# Other locations to download the image is available #
# #
# Codeberg: #
# codeberg.org/korbs/bun:amd64 #
# codeberg.org/korbs/bun:arm64 #
# #
# Quay: #
# quay.io/sudovanilla/bun:amd64 #
# quay.io/sudovanilla/bun:arm64 #
# #
#########################################################
2024-06-05 19:48:11 -05:00
# Base
## For AMD64 Servers:
2024-06-07 02:15:36 -05:00
FROM ark.sudovanilla.org/korbs/bun:arm64 AS based
## For ARM64 Servers:
## FROM ark.sudovanilla.org/korbs/bun:arm64 as based
2024-06-05 19:48:11 -05:00
# Copy Files
WORKDIR /app
2024-06-05 19:48:11 -05:00
COPY . .
# Run in Production
ENV NODE_ENV=production
# Build
2024-06-07 02:15:36 -05:00
RUN bun install && bun run build
2024-06-05 19:48:11 -05:00
# Run
USER bun
EXPOSE 2014/tcp
CMD bun ./dist/server/entry.mjs