Skip to content

Commit

Permalink
build: added old WIP Dockerfile and dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 30, 2022
1 parent eeba3b6 commit 63b6b6f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.pyc
.*cache
**/node_modules
aw-server-rust/target
aw-android
./other
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM python:3.8

ARG PORT
ENV SERVER_PORT=$PORT

# Disables pip caching
ENV PIP_NO_CACHE_DIR=false

# Install dependencies
RUN apt-get update
RUN apt-get install -y git build-essential apt-utils wget libfreetype6 libpng-dev libopenblas-dev gcc gfortran
RUN python3 -m pip install pipenv

RUN mkdir /app
WORKDIR /app

# Install dependencies seperately, to utilize caching
RUN mkdir /app/aw-core
COPY aw-core/requirements.txt /app/aw-core
WORKDIR /app/aw-core
RUN pip install -r requirements.txt

RUN mkdir /app/aw-server
COPY aw-server/requirements.txt /app/aw-server
WORKDIR /app/aw-server
RUN pip install -r requirements.txt

# Build the rest
WORKDIR /app
COPY . /app

# Debugging, just for printing the build context
#RUN find /tmp/build

RUN make build SKIP_WEBUI=true

# Entrypoint
ENTRYPOINT ["/bin/sh", "-c"]

0 comments on commit 63b6b6f

Please sign in to comment.