Feat: Implementation of New UI (Bar, Homepage, Commander, BSets), Removing NGINX dependency, Dockerfile added
This commit is contained in:
parent
64a4c5fb87
commit
238b594b1e
31 changed files with 734 additions and 202 deletions
28
app/Dockerfile
Normal file
28
app/Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
FROM node:alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
# install dependencies
|
||||
RUN npm install
|
||||
COPY . .
|
||||
# build
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
# remove dev dependencies
|
||||
RUN npm prune --production
|
||||
|
||||
FROM node:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache openssl
|
||||
# copy from build image
|
||||
COPY --from=build /app/package.json ./package.json
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY --from=build /app/.next ./.next
|
||||
COPY --from=build /app/public ./public
|
||||
COPY --from=build /app/tools ./tools
|
||||
COPY --from=build /app/data ./data
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["npm","run","start"]
|
Loading…
Add table
Add a link
Reference in a new issue