Skip to content

Commit

Permalink
uses release from .yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Dec 21, 2023
1 parent 307edaa commit d263f17
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
uses: docker/bake-action@v4
with:
push: true
provenance: true
3 changes: 3 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ services:
volumes:
- "mongodb_data:/data/db"
- $PWD/services/mongodb/src/init.js:/docker-entrypoint-initdb.d/init_mongo.js

volumes:
mongodb_data:
5 changes: 2 additions & 3 deletions packages/Dockerfile.chat
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ WORKDIR /app
COPY package.json .yarnrc.yml yarn.lock ./
COPY .yarn/releases/ ./.yarn/releases/
COPY .yarn/cache/ ./.yarn/cache/
COPY ./packages/twitch/chat/package.json ././packages/twitch/chat/
COPY ./packages/twitch/chat/package.json ./packages/twitch/chat/

# Install dependencies
RUN yarn set version 4.0.2
RUN yarn install

#-------------------------
Expand Down Expand Up @@ -46,7 +45,7 @@ USER dotadockeruser
# Copy relevant build artifacts
WORKDIR /app
COPY --from=builder --chown=dotadockeruser /app/package.json /app/tsconfig.json ./
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/chat/package.json ././packages/twitch/chat/
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/chat/package.json ./packages/twitch/chat/
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/chat/dist ./packages/twitch/chat/dist/
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/chat/locales ./packages/twitch/chat/locales/

Expand Down
5 changes: 2 additions & 3 deletions packages/Dockerfile.dota
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ COPY package.json .yarnrc.yml yarn.lock ./
COPY packages/settings/package.json ./packages/settings/
COPY .yarn/releases/ ./.yarn/releases/
COPY .yarn/cache/ ./.yarn/cache/
COPY ./packages/dota/package.json ././packages/dota/
COPY ./packages/dota/package.json ./packages/dota/

# Install dependencies
RUN yarn set version 4.0.2
RUN yarn install

#-------------------------
Expand Down Expand Up @@ -51,7 +50,7 @@ USER dotadockeruser
WORKDIR /app
COPY --from=builder --chown=dotadockeruser /app/package.json /app/tsconfig.json ./
COPY --from=builder --chown=dotadockeruser /app/packages/settings/package.json /app/packages/settings/
COPY --from=builder --chown=dotadockeruser /app/./packages/dota/package.json ././packages/dota/
COPY --from=builder --chown=dotadockeruser /app/./packages/dota/package.json ./packages/dota/
COPY --from=builder --chown=dotadockeruser /app/packages/settings/dist packages/settings/dist/
COPY --from=builder --chown=dotadockeruser /app/./packages/dota/dist ./packages/dota/dist/
COPY --from=builder --chown=dotadockeruser /app/./packages/dota/locales ./packages/dota/locales/
Expand Down
5 changes: 2 additions & 3 deletions packages/Dockerfile.events
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ WORKDIR /app
COPY package.json .yarnrc.yml yarn.lock ./
COPY .yarn/releases/ ./.yarn/releases/
COPY .yarn/cache/ ./.yarn/cache/
COPY ./packages/twitch/events/package.json ././packages/twitch/events/
COPY ./packages/twitch/events/package.json ./packages/twitch/events/

# Install dependencies
RUN yarn set version 4.0.2
RUN yarn install

#-------------------------
Expand Down Expand Up @@ -45,7 +44,7 @@ USER dotadockeruser
# Copy relevant build artifacts
WORKDIR /app
COPY --from=builder --chown=dotadockeruser /app/package.json /app/tsconfig.json ./
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/events/package.json ././packages/twitch/events/
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/events/package.json ./packages/twitch/events/
COPY --from=builder --chown=dotadockeruser /app/./packages/twitch/events/dist ./packages/twitch/events/dist/

# Create required directories
Expand Down
5 changes: 2 additions & 3 deletions packages/Dockerfile.steam
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ WORKDIR /app
COPY package.json .yarnrc.yml yarn.lock ./
COPY .yarn/releases/ ./.yarn/releases/
COPY .yarn/cache/ ./.yarn/cache/
COPY ./packages/steam/package.json ././packages/steam/
COPY ./packages/steam/package.json ./packages/steam/

# Install dependencies
RUN yarn set version 4.0.2
RUN yarn install

#-------------------------
Expand Down Expand Up @@ -45,7 +44,7 @@ USER dotadockeruser
# Copy relevant build artifacts
WORKDIR /app
COPY --from=builder --chown=dotadockeruser /app/package.json /app/tsconfig.json ./
COPY --from=builder --chown=dotadockeruser /app/./packages/steam/package.json ././packages/steam/
COPY --from=builder --chown=dotadockeruser /app/./packages/steam/package.json ./packages/steam/
COPY --from=builder --chown=dotadockeruser /app/./packages/steam/dist ./packages/steam/dist/
COPY --from=builder --chown=dotadockeruser /app/node_modules ./node_modules

Expand Down

0 comments on commit d263f17

Please sign in to comment.