Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for ARM servers #528

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: lint issues in Dockerfile
  • Loading branch information
Aviortheking committed Aug 30, 2024
commit 588f549448e88b782378763771ffc66e3a4631c6
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/oven/bun:1-alpine as BUILD_IMAGE
FROM docker.io/oven/bun:1-alpine AS build-image

# go to work folder
WORKDIR /usr/src/app
@@ -28,7 +28,7 @@ rm -rf node_modules && \
bun install --frozen-install --production

# go to another VM
FROM docker.io/oven/bun:1-alpine as PROD_IMAGE
FROM docker.io/oven/bun:1-alpine AS prod-image

# inform software to be in production
ENV NODE_ENV=production
@@ -40,11 +40,11 @@ USER bun
WORKDIR /usr/src/app

# copy from build image
COPY --chown=bun:bun --from=BUILD_IMAGE /usr/src/app/server/generated ./generated
COPY --chown=bun:bun --from=BUILD_IMAGE /usr/src/app/server/node_modules ./node_modules
COPY --chown=bun:bun --from=BUILD_IMAGE /usr/src/app/server/src ./src
COPY --chown=bun:bun --from=BUILD_IMAGE /usr/src/app/server/public ./public
COPY --chown=bun:bun --from=BUILD_IMAGE /usr/src/app/server/package.json ./package.json
COPY --chown=bun:bun --from=build-image /usr/src/app/server/generated ./generated
COPY --chown=bun:bun --from=build-image /usr/src/app/server/node_modules ./node_modules
COPY --chown=bun:bun --from=build-image /usr/src/app/server/src ./src
COPY --chown=bun:bun --from=build-image /usr/src/app/server/public ./public
COPY --chown=bun:bun --from=build-image /usr/src/app/server/package.json ./package.json

# Expose port
EXPOSE 3000