Commit 96c2a849 authored by Brent Schuetze's avatar Brent Schuetze
Browse files

Add some extra args in case you want the log file to be created

parent 7f911276
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.10-alpine3.15
# Arg for log file if necessary
ARG USER_ID=5678
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
......@@ -17,7 +19,9 @@ COPY ./ /app
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
RUN adduser -u ${USER_ID} --disabled-password --gecos "" appuser
RUN chown -R appuser /app
USER appuser
......
......@@ -11,12 +11,16 @@ services:
# image: charlepm/open-form-music-server:v2022.0.1
environment:
- SERVER_ADDRESS=0.0.0.0
- LOGGING=--no-enable-logging
# - LOGGING=--enable-logging
- PRINT_LOGGING=--print-logs
- LOG_LEVEL=WARN
build:
./code/server
context: ./code/server
args:
- USER_ID=5678
ports:
- "4001:4001"
# volumes:
# - /tmp/logs:/app/logs
# stdin_open: true # docker run -i
# tty: true # docker run -t
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment