Skip to content

Commit 4040567

Browse files
authored
Update Dockerfile
1 parent 53a5d75 commit 4040567

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM node:18-alpine
22
WORKDIR /app
33

4-
# Copy mock packages
4+
# Copy mock package
55
COPY mock-output /mock
66

7-
# Install each mock package globally
8-
RUN for d in /mock/*; do \
9-
cd "$d" && npm pack && npm install -g *.tgz; \
10-
done
7+
# Pack and install the mock package
8+
RUN cd /mock/@asyncapi/cli && \
9+
npm pack && \
10+
npm install -g *.tgz
1111

12-
CMD ["node", "-e", "console.log('Mock packages installed successfully')"]
12+
CMD ["node", "-e", "console.log('Mock package installed successfully')"]

0 commit comments

Comments
 (0)