Skip to content

Commit

Permalink
Dockerfileの移動
Browse files Browse the repository at this point in the history
  • Loading branch information
na2na-p committed Dec 4, 2023
1 parent 26ea5fc commit 581a187
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
app:
build: .
build:
context: .
dockerfile: infra/docker/Dockerfile
restart: always
networks:
- external_network
Expand Down
18 changes: 9 additions & 9 deletions Dockerfile → infra/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
wget

RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \
&& tar -xzf Python-${PYTHON_VERSION}.tgz \
&& cd Python-${PYTHON_VERSION} \
&& ./configure --enable-optimizations \
&& make -j 8 \
&& make altinstall \
&& cd .. \
&& rm -rf Python-${PYTHON_VERSION}.tgz Python-${PYTHON_VERSION} \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
&& tar -xzf Python-${PYTHON_VERSION}.tgz \
&& cd Python-${PYTHON_VERSION} \
&& ./configure --enable-optimizations \
&& make -j 8 \
&& make altinstall \
&& cd .. \
&& rm -rf Python-${PYTHON_VERSION}.tgz Python-${PYTHON_VERSION} \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*

FROM node:${NODE_VERSION} as builder

Expand Down

0 comments on commit 581a187

Please sign in to comment.