fix: get backend docker working
This commit is contained in:
@@ -28,10 +28,12 @@ WORKDIR /app
|
|||||||
# RUN mkdir ~/.fonts/ && \
|
# RUN mkdir ~/.fonts/ && \
|
||||||
# wget https://github.com/samuelngs/apple-emoji-linux/releases/download/ios-15.4/AppleColorEmoji.ttf -O ~/.fonts/AppleColorEmoji.ttf
|
# 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
|
RUN npm install --frozen-lockfile
|
||||||
COPY ./ /app/
|
COPY . /app
|
||||||
|
|
||||||
ENV PORT 3002
|
ENV PORT 3002
|
||||||
|
|
||||||
EXPOSE 3002
|
EXPOSE 3002
|
||||||
CMD ["npm", "start"]
|
|
||||||
|
CMD ["node", "server.js"]
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18-alpine AS builder
|
FROM node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -30,13 +30,6 @@ RUN pnpm i
|
|||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
RUN pnpm prune --production
|
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
|
EXPOSE 5000
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"globalEnv": ["IS_SELFHOSTED"],
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"globalEnv": ["IS_SELFHOSTED"],
|
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": [".next/**", "!.next/cache/**", ".svelte-kit/**", ".vercel/**"]
|
"outputs": [".next/**", "!.next/cache/**", ".svelte-kit/**", ".vercel/**"]
|
||||||
|
|||||||
Reference in New Issue
Block a user