2024-06-06 21:49:13 +00:00
|
|
|
#########################################################
|
|
|
|
# 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-06 00:48:11 +00:00
|
|
|
|
2024-06-06 21:49:13 +00: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-06 00:48:11 +00:00
|
|
|
|
2024-06-06 21:49:13 +00:00
|
|
|
# Base
|
|
|
|
## For AMD64 Servers:
|
2024-11-12 22:03:52 +00:00
|
|
|
FROM ark.sudovanilla.org/korbs/bun:amd64 AS based
|
2024-06-06 21:49:13 +00:00
|
|
|
## For ARM64 Servers:
|
|
|
|
## FROM ark.sudovanilla.org/korbs/bun:arm64 as based
|
2024-06-06 00:48:11 +00:00
|
|
|
|
2024-06-06 21:49:13 +00:00
|
|
|
# Copy Files
|
|
|
|
WORKDIR /app
|
2024-06-06 00:48:11 +00:00
|
|
|
COPY . .
|
|
|
|
|
2024-06-06 21:49:13 +00:00
|
|
|
# Run in Production
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
|
|
|
|
# Run
|
2024-11-12 22:03:52 +00:00
|
|
|
EXPOSE 2014
|
|
|
|
CMD bun run build && bun start
|