Node modules wasnt copied over, and fixed issue with bun build by building each workspace individually
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
node_modules
|
**/node_modules
|
||||||
dist
|
dist
|
||||||
.git
|
.git
|
||||||
.gitignore
|
.gitignore
|
||||||
|
|||||||
15
Dockerfile
15
Dockerfile
@@ -20,9 +20,18 @@ COPY . .
|
|||||||
# ensuring the environment variables are set for the build if needed
|
# ensuring the environment variables are set for the build if needed
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
RUN bun --filter "@torrent-client/shared" build
|
# Build packages individually by changing directory
|
||||||
RUN bun --filter "@torrent-client/server" build
|
WORKDIR /app/packages/shared
|
||||||
RUN bun --filter "@torrent-client/client" build
|
RUN bun run build
|
||||||
|
|
||||||
|
WORKDIR /app/packages/server
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
WORKDIR /app/packages/client
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
# Reset working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
# Expose the port (Dokku will override PORT env var, but 3000 is a good default documentation)
|
# Expose the port (Dokku will override PORT env var, but 3000 is a good default documentation)
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user