add nick
[laas.git] / worker / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2018 Trevor Bramwell and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 FROM python:3.9
10 ENV PYTHONUNBUFFERED 1
11
12 ADD requirements.txt /requirements.txt
13 RUN pip install -r /requirements.txt
14
15 ADD worker/init.sh /init.sh
16 ADD src/ /laas_dashboard/
17
18 RUN useradd -ms /bin/bash celery
19 USER celery
20
21 WORKDIR /laas_dashboard/
22 CMD ["/init.sh"]