Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
VoronM1522 committed Feb 15, 2025
1 parent e0ffb6b commit 51d5ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app_C++/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ RUN apk add --no-cache \
wget \
linux-headers
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 g++ app.cpp -o app
RUN adduser app_user || $(chown -R app_user:app_user /app && true)
USER app_user
EXPOSE 8080
CMD ["./app"]
CMD ["./app"]
2 changes: 2 additions & 0 deletions app_python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
COPY app.py config.txt requirements.txt ./
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
RUN adduser app_user && chown -R app_user:app_user /app
USER app_user
CMD ["python", "app.py"]

0 comments on commit 51d5ac1

Please sign in to comment.