feat: goctf final
This commit is contained in:
commit
f205b802d5
128 files changed
+37794
No files matched your search
@@ -0,0 +1,18 @@
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /greenhouse
|
||||
COPY native/greenhouse-console /greenhouse/greenhouse-console
|
||||
COPY native/patch_console.py /tmp/patch_console.py
|
||||
COPY app/ /greenhouse/app/
|
||||
COPY frontend/ /greenhouse/frontend/
|
||||
COPY start.sh /greenhouse/start.sh
|
||||
RUN python3 /tmp/patch_console.py /greenhouse/greenhouse-console \
|
||||
&& rm /tmp/patch_console.py \
|
||||
&& chmod +x /greenhouse/greenhouse-console /greenhouse/start.sh \
|
||||
&& mkdir -p /data \
|
||||
&& useradd -m -u 10001 greenhouse \
|
||||
&& chown greenhouse:greenhouse /data
|
||||
USER greenhouse
|
||||
ENV GREENHOUSE_DATA=/data PORT=8080
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 8080
|
||||
CMD ["/greenhouse/start.sh"]
|
||||
Reference in new issue
Block a user