Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
bemoty committed Feb 28, 2024
1 parent 119a5e1 commit 1697611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
docker login https://docker.pkg.github.com -u $DOCKER_USER -p $DOCKER_PASS
- name: server dir
run: |
cd server
- name: docker build
run: |
docker build . -t docker.pkg.github.com/josholaus/doofus-rick/bot:latest
Expand Down
6 changes: 3 additions & 3 deletions server/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ WORKDIR /home/app
# This will chache required dependencies and thus speed up future builds.
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
COPY server/package.json server/bun.lockb /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile

# Install with --production flag to exclude development dependencies.
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
COPY server/package.json server/bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production

# Copy node_modules from temporary directory and all other non-ignored project files into the image.
FROM base AS pre-release
COPY . .
COPY server .

# Build
ENV NODE_ENV=production
Expand Down

0 comments on commit 1697611

Please sign in to comment.