ikechan8370 commited on
Commit
be881bf
β€’
1 Parent(s): dac3b76

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -26,7 +26,7 @@ RUN git clone https://github.com/MeetWq/meme-generator-contrib && mkdir $HOME/m
26
 
27
  ADD config.toml $HOME/.config/meme_generator/config.toml
28
 
29
- RUN cd meme-generator && poetry install && python3 -m meme_generator.download && cd ..
30
 
31
  RUN rm -rf meme-generator-contrib && rm -rf $HOME/meme-generator
32
 
@@ -36,4 +36,4 @@ ADD dianzhongdian/__init__.py meme-generator/meme_generator/memes/dianzhongdian/
36
  # ε¦‚ζžœζœ‰θ‡ͺε·±ζ‰©ε±•εŒ…
37
  # ADD extends/ /meme-extend
38
 
39
- CMD cd meme-generator && python3 -m meme_generator.app
 
26
 
27
  ADD config.toml $HOME/.config/meme_generator/config.toml
28
 
29
+ RUN cd meme-generator && poetry config virtualenvs.in-project true && poetry install && python3 -m meme_generator.download && cd ..
30
 
31
  RUN rm -rf meme-generator-contrib && rm -rf $HOME/meme-generator
32
 
 
36
  # ε¦‚ζžœζœ‰θ‡ͺε·±ζ‰©ε±•εŒ…
37
  # ADD extends/ /meme-extend
38
 
39
+ CMD cd meme-generator && . .venv/bin/activate && python3 -m meme_generator.app