Skip to content

Commit

Permalink
Merge pull request #396 from cmu-sei/v8
Browse files Browse the repository at this point in the history
fixes amd/arm container build for pandora
  • Loading branch information
sei-dupdyke authored Aug 26, 2024
2 parents 486ffe2 + 754ae7e commit 08e2405
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions src/ghosts.pandora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@ WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# install dependencies
RUN apk add -u zlib-dev jpeg-dev gcc musl-dev ffmpeg
# install system dependencies
RUN apk add --no-cache zlib-dev jpeg-dev gcc musl-dev ffmpeg libxml2-dev libxslt-dev

# upgrade pip
RUN python3 -m pip install --upgrade pip
COPY ./requirements.txt /usr/src/app
COPY ./readme.md /usr/src

RUN pip install -r requirements.txt
# copy requirements and install Python dependencies
COPY ./requirements.txt /usr/src/app
RUN pip install --no-cache-dir -r requirements.txt

# copy project
# copy project files
COPY ./app /usr/src/app

LABEL MAINTAINER Dustin Updyke <ddupdyke[at]sei.cmu.edu>
LABEL PRODUCT GHOSTS PANDORA
LABEL VERSION Browse to /about

# expose port
EXPOSE 80

# set entrypoint
ENTRYPOINT [ "python3" ]

# run the application
CMD [ "app.py", "80" ]
2 changes: 1 addition & 1 deletion src/ghosts.pandora/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
pandora:
restart: always
container_name: ghosts-pandora
image: dustinupdyke/ghosts-pandora:0.5.7
image: dustinupdyke/ghosts-pandora
ports:
- "80:80"
- "8081:8081"
Expand Down

0 comments on commit 08e2405

Please sign in to comment.