parent
459771c806
commit
862c5a9b58
@ -78,14 +78,14 @@ jobs:
|
|||||||
if: steps.changes.outputs.frontend == 'true'
|
if: steps.changes.outputs.frontend == 'true'
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
file: frontend/Dockerfile
|
file: Dockerfile
|
||||||
context: "{{defaultContext}}:frontend"
|
context: "{{defaultContext}}:frontend"
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.frontend-meta.outputs.tags }}
|
tags: ${{ steps.frontend-meta.outputs.tags }}
|
||||||
|
|
||||||
# API
|
# API
|
||||||
- name: "[Frontend] Build and push"
|
- name: "[API] Build and push"
|
||||||
if: steps.changes.outputs.api == 'true'
|
if: steps.changes.outputs.api == 'true'
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
@ -100,7 +100,7 @@ jobs:
|
|||||||
if: steps.changes.outputs.bot == 'true'
|
if: steps.changes.outputs.bot == 'true'
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
file: telegram_bot/Dockerfile
|
file: Dockerfile
|
||||||
context: "{{defaultContext}}:telegram_bot"
|
context: "{{defaultContext}}:telegram_bot"
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
|
@ -4,7 +4,7 @@ FROM node:latest as build
|
|||||||
WORKDIR /usr/local/app
|
WORKDIR /usr/local/app
|
||||||
|
|
||||||
# Copy the project files to the container
|
# Copy the project files to the container
|
||||||
COPY frontend/ /usr/local/app/
|
COPY . /usr/local/app/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
@ -16,8 +16,8 @@ FROM nginx:latest
|
|||||||
COPY --from=build /usr/local/app/dist/aktienbot /usr/share/nginx/html
|
COPY --from=build /usr/local/app/dist/aktienbot /usr/share/nginx/html
|
||||||
|
|
||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY frontend/deploy/nginx.conf /etc/nginx
|
COPY ./deploy/nginx.conf /etc/nginx
|
||||||
COPY frontend/deploy deploy/
|
COPY ./deploy deploy/
|
||||||
|
|
||||||
# Change file permissions
|
# Change file permissions
|
||||||
RUN chmod +x ./deploy/healthcheck.sh
|
RUN chmod +x ./deploy/healthcheck.sh
|
||||||
|
@ -17,5 +17,6 @@ COPY . /srv/flask_app
|
|||||||
# Change file permissions
|
# Change file permissions
|
||||||
RUN chmod +x ./deploy/start.sh
|
RUN chmod +x ./deploy/start.sh
|
||||||
|
|
||||||
|
|
||||||
# Run the app
|
# Run the app
|
||||||
CMD ["./deploy/start.sh"]
|
CMD ["./deploy/start.sh"]
|
Loading…
Reference in New Issue
Block a user