fix: get backend docker working

This commit is contained in:
Rotimi Best
2024-09-23 01:37:57 +01:00
parent 877b514a7b
commit 0349e8c531
3 changed files with 7 additions and 12 deletions
+5 -3
View File
@@ -28,10 +28,12 @@ WORKDIR /app
# RUN mkdir ~/.fonts/ && \
# wget https://github.com/samuelngs/apple-emoji-linux/releases/download/ios-15.4/AppleColorEmoji.ttf -O ~/.fonts/AppleColorEmoji.ttf
COPY package.json /app/
COPY ./package.json /app
RUN npm install --frozen-lockfile
COPY ./ /app/
COPY . /app
ENV PORT 3002
EXPOSE 3002
CMD ["npm", "start"]
CMD ["node", "server.js"]
+1 -8
View File
@@ -1,4 +1,4 @@
FROM node:18-alpine AS builder
FROM node:18-alpine
WORKDIR /app
@@ -30,13 +30,6 @@ RUN pnpm i
RUN pnpm build
RUN pnpm prune --production
FROM node:18-alpine
WORKDIR /app/apps/dashboard
COPY --from=builder /app/apps/dashboard/build build/
COPY --from=builder /app/apps/dashboard/node_modules node_modules/
COPY package.json .
EXPOSE 5000
ENV NODE_ENV=production
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"globalEnv": ["IS_SELFHOSTED"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", ".svelte-kit/**", ".vercel/**"]