Skip to content

Commit

Permalink
Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
VoronM1522 committed Feb 15, 2025
1 parent 34d99dd commit 879790b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/C++_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
python -m pip install --upgrade pip
pip install -r app_C++/requirements.txt
sudo apt update
sudo apt install cppcheck
sudo apt install cppcheck wget
mkdir /usr/local/include && wget https://raw.githubusercontent.com/yhirose/cpp-httplib/master/httplib.h -O /usr/local/include/httplib.h
- name: Lint with Cppcheck
run: |
Expand Down
6 changes: 1 addition & 5 deletions app_C++/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM alpine:3.19
WORKDIR /app
COPY app.cpp ./
RUN apk add --no-cache \
g++ \
make \
wget \
linux-headers
RUN apk add --no-cache wget g++
RUN mkdir /usr/local/include && wget https://raw.githubusercontent.com/yhirose/cpp-httplib/master/httplib.h -O /usr/local/include/httplib.h
RUN g++ app.cpp -o app
RUN adduser app_user || $(chown -R app_user:app_user /app && true)
Expand Down

0 comments on commit 879790b

Please sign in to comment.