diff --git a/Dockerfile b/Dockerfile index 176c591..31f1145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ COPY production.yaml.example start.sh /app/pkg/ ENV NODE_ENV production ENV NODE_CONFIG_DIR /app/code/server/config -RUN echo 'alias peertube="cd /app/code/cli && node dist/server/tools/peertube.js"' > ~/.bashrc +RUN printf '#!/bin/bash\n\ncd /app/code/cli && node dist/server/tools/peertube.js $@\n' > /usr/bin/peertube && chmod +x /usr/bin/peertube CMD [ "/app/pkg/start.sh" ]