Fix Dockerfile
This commit is contained in:
parent
c8ab7e1349
commit
cb50ff863b
11 changed files with 72 additions and 93 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,25 +1,19 @@
|
|||
FROM fukamachi/qlot
|
||||
|
||||
# 作業ディレクトリ
|
||||
WORKDIR /app
|
||||
|
||||
# ソース全体をコピー
|
||||
COPY . /app
|
||||
|
||||
# Tailwind CLI をダウンロード&インストール
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl libev-dev
|
||||
|
||||
RUN mkdir -p ./bin \
|
||||
&& curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \
|
||||
&& chmod +x tailwindcss-linux-x64 \
|
||||
&& mv tailwindcss-linux-x64 ./bin/tailwindcss
|
||||
|
||||
# Tailwind CSS をビルド(global.css -> dist.css)
|
||||
RUN ./bin/tailwindcss -i ./public/style/global.css -o ./public/style/dist.css --minify
|
||||
|
||||
# Qlot依存関係のインストール
|
||||
RUN qlot install
|
||||
RUN qlot install --quiet
|
||||
|
||||
# ポート開放
|
||||
EXPOSE 3000
|
||||
|
||||
# アプリ起動
|
||||
CMD [".qlot/bin/clackup", "--system", "hp", "--server", "woo", "--port", "3000", "src/app.lisp"]
|
||||
ENTRYPOINT [".qlot/bin/clackup", "--system", "hp", "--server", "woo", "--address", "0.0.0.0", "--port", "3000", "src/app.lisp"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue