Skip to content

Commit 4a93fc4

Browse files
committed
migrated
1 parent 3b31495 commit 4a93fc4

File tree

2,275 files changed

+16828
-289750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,275 files changed

+16828
-289750
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1521 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 129 deletions
This file was deleted.

Dockerfile

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM node:23.3.0-slim AS builder
33

44
# Install pnpm globally and install necessary build tools
5-
RUN npm install -g pnpm@9.4.0 && \
5+
RUN npm install -g pnpm@9.15.1 && \
66
apt-get update && \
77
apt-get install -y git python3 make g++ && \
88
apt-get clean && \
@@ -15,41 +15,47 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
1515
WORKDIR /app
1616

1717
# Copy package.json and other configuration files
18-
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./
18+
COPY package.json ./
19+
COPY pnpm-lock.yaml ./
20+
COPY tsconfig.json ./
1921

2022
# Copy the rest of the application code
21-
COPY agent ./agent
22-
COPY packages ./packages
23-
COPY scripts ./scripts
24-
COPY characters ./characters
23+
COPY ./src ./src
24+
COPY ./characters ./characters
2525

2626
# Install dependencies and build the project
27-
RUN pnpm install \
28-
&& pnpm build-docker \
29-
&& pnpm prune --prod
27+
RUN pnpm install
28+
RUN pnpm build
29+
30+
# Create dist directory and set permissions
31+
RUN mkdir -p /app/dist && \
32+
chown -R node:node /app && \
33+
chmod -R 755 /app
34+
35+
# Switch to node user
36+
USER node
3037

3138
# Create a new stage for the final image
3239
FROM node:23.3.0-slim
3340

3441
# Install runtime dependencies if needed
35-
RUN npm install -g pnpm@9.4.0 && \
36-
apt-get update && \
42+
RUN npm install -g pnpm@9.15.1
43+
RUN apt-get update && \
3744
apt-get install -y git python3 && \
3845
apt-get clean && \
3946
rm -rf /var/lib/apt/lists/*
4047

4148
WORKDIR /app
4249

4350
# Copy built artifacts and production dependencies from the builder stage
44-
COPY --from=builder /app/package.json ./
45-
COPY --from=builder /app/pnpm-workspace.yaml ./
46-
COPY --from=builder /app/.npmrc ./
47-
COPY --from=builder /app/turbo.json ./
48-
COPY --from=builder /app/node_modules ./node_modules
49-
COPY --from=builder /app/agent ./agent
50-
COPY --from=builder /app/packages ./packages
51-
COPY --from=builder /app/scripts ./scripts
52-
COPY --from=builder /app/characters ./characters
53-
51+
COPY --from=builder /app/package.json /app/
52+
COPY --from=builder /app/node_modules /app/node_modules
53+
COPY --from=builder /app/src /app/src
54+
COPY --from=builder /app/characters /app/characters
55+
COPY --from=builder /app/dist /app/dist
56+
COPY --from=builder /app/tsconfig.json /app/
57+
COPY --from=builder /app/pnpm-lock.yaml /app/
58+
59+
EXPOSE 3000
5460
# Set the command to run the application
55-
CMD ["pnpm", "start"]
61+
CMD ["pnpm", "start", "--non-interactive"]

0 commit comments

Comments
 (0)