Skip to content

Commit

Permalink
chore(frontend): change base image to node:18.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Nov 28, 2023
1 parent d5f0c10 commit 7c6f02a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy

on:
push:
branches:
- master
# branches:
# - master

jobs:
build-and-push:
Expand All @@ -24,10 +24,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build docker images
run: docker compose build

- name: Push docker images
run: docker compose push backend frontend
run: docker compose build --push

deploy:
needs: build-and-push
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:20.10.0
FROM node:18.18.0

WORKDIR /run

COPY package*.json .
RUN npm install

COPY . .
RUN npm run build
CMD npm run build

0 comments on commit 7c6f02a

Please sign in to comment.