Skip to content

Commit

Permalink
fix issues related to podman runs
Browse files Browse the repository at this point in the history
  • Loading branch information
spiceywasabi committed Oct 21, 2021
1 parent 8bcaa39 commit cddeffd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# make a builder to pull data from
FROM alpine:latest AS builder

RUN apk update && apk --no-cache add unzip python3 python3-dev py3-setuptools py3-pip wget bash py3-virtualenv alpine-sdk
Expand Down Expand Up @@ -28,6 +28,7 @@ COPY --from=builder /app /app
COPY entrypoint.sh /entrypoint.sh
WORKDIR /app

# this is how you activate a venv via docker
ENV VIRTUAL_ENV=/app
ENV PATH="/app:/app/bin:$PATH"
ENV LANG=C.UTF-8
Expand All @@ -37,9 +38,10 @@ ENV BOTINCONTAINER 1
ENV AIML_XML /app/aiml/std-startup.xml
ENV AIML_BRAIN /data/bot.brn

RUN apk update && apk --no-cache add python3 py3-virtualenv && rm -rf /usr/lib/python3.9/__pycache__/ \
RUN chmod +x /*.sh && apk update && apk --no-cache add python3 py3-virtualenv && rm -rf /usr/lib/python3.9/__pycache__/ \
&& ln -s /app/aiml/* /app/ && find / -name __pycache__ -type d -exec rm -r "{}" \; || echo "running clean"

VOLUME /data

ENTRYPOINT ["/entrypoint.sh"]
# docker style entrypoints ['cmd'] are broken in podman
ENTRYPOINT /entrypoint.sh

0 comments on commit cddeffd

Please sign in to comment.