fixed dockerfile

This commit is contained in:
Jacob Delgado 2024-09-09 02:17:49 -07:00
parent 8dda772045
commit acf60e11f1

View File

@ -1,18 +1,21 @@
FROM node:20
FROM node:20-alpine
WORKDIR /user/src/app
COPY ./package.json ./
COPY ./bun.lockb ./
RUN npm install -g bun
RUN bun install
# RUN npm install -g bun
# RUN bun install
RUN npm install --no-audit --silent
COPY . .
# EXPOSE 3000
EXPOSE 3003
RUN bun next build
# RUN bun next build
RUN npm run build
# CMD ["bun", "dev", "--host"]
CMD ["bun", "start"]
# CMD ["bun", "start"]
CMD ["npm", "start"]