Skip to content

Commit

Permalink
fix: some deps not installed and incorrect path
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad5305 committed Jan 9, 2024
1 parent ff29250 commit 300cd60
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:3.16 as build

ENV CRAWL_REPO="https://github.com/crawl/crawl.git"
ENV APP_DEPS="bzip2 git lua-dev python3 python3-dev py3-pip py3-yaml ncurses-terminfo-base libc-utils sqlite-libs pcre-dev musl-locales lsof sudo autoconf bison build-base flex git ncurses-dev sqlite-dev zlib-dev pkgconf binutils freetype-dev libpng-dev ttf-dejavu advancecomp pngcrush libexecinfo-dev"
ENV APP_DEPS="libc-utils pcre-dev lua-dev libstdc++"
ENV BUILD_DEPS="bzip2 git python3 python3-dev py3-pip py3-yaml ncurses-terminfo-base sqlite-libs musl-locales lsof sudo autoconf bison build-base flex git ncurses-dev sqlite-dev zlib-dev pkgconf binutils freetype-dev libpng-dev ttf-dejavu advancecomp pngcrush libexecinfo-dev"

RUN apk update && apk add --no-cache $APP_DEPS
RUN apk update && apk add --no-cache $APP_DEPS $BUILD_DEPS

RUN git clone --filter=tree:0 ${CRAWL_REPO} /src/

Expand All @@ -16,14 +17,18 @@ RUN make install -j$(nproc) EXTERNAL_DEFINES="-lexecinfo" DESTDIR=/app/ USE_DGAM
FROM python:alpine3.19
LABEL maintainer="Mohammad Bajalal <mohammad.bajalal5305@gmail.com>"

RUN apk update && apk add --no-cache $APP_DEPS

COPY --from=build /app /app
COPY --from=build /src/crawl-ref/source/util /app/util
COPY --from=build /src/crawl-ref/source/webserver /app/webserver

RUN pip install --no-cache-dir -r /app/webserver/requirements/base.py3.txt

COPY --from=build /app /app
COPY --from=build /src/crawl-ref/source/util /app/util

RUN sed -i "s#../settings/init.txt#./settings/init.txt#g" /app/util/webtiles-init-player.sh
RUN cp /app/bin/crawl /app/crawl

WORKDIR /app
EXPOSE 8080
CMD python /app/webserver/server.py

CMD python ./webserver/server.py

0 comments on commit 300cd60

Please sign in to comment.