Skip to content

Commit

Permalink
fix(docker): fix interface build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ProtasSemyon committed Oct 6, 2024
1 parent 4aeb365 commit e24bed8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ FROM ubuntu:focal as base
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Moscow
# install dependencies

RUN apt-get update
RUN apt-get install -y --no-install-recommends sudo ccache tini tzdata

COPY ./scripts /tmp/scripts
COPY ./problem-solver/sc-machine/scripts /tmp/problem-solver/sc-machine/scripts
COPY ./problem-solver/sc-machine/requirements.txt /tmp/problem-solver/sc-machine/requirements.txt
RUN apt-get update && \
apt-get install -y --no-install-recommends sudo ccache tini tzdata && \
/tmp/scripts/install_problem_solver_deps.sh
RUN /tmp/scripts/install_problem_solver_deps.sh

FROM base as builder
ENV CCACHE_DIR=/ccache
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
expose:
- 8090
healthcheck:
test: "python3 /nika/problem-solver/sc-machine/scripts/healthcheck.py"
test: "bash -c 'python3 /nika/problem-solver/sc-machine/scripts/healthcheck.py'"
interval: 5s
timeout: 10s
retries: 6
Expand Down
1 change: 1 addition & 0 deletions interface/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
build
2 changes: 1 addition & 1 deletion interface/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:16-alpine AS web-buildenv

WORKDIR /nika-ui
#Install build-time dependencies
COPY package.json package-lock.json ./
COPY package.json package-lock.json yarn.lock ./
RUN yarn
#Build the interface
COPY . .
Expand Down

0 comments on commit e24bed8

Please sign in to comment.