Skip to content

Commit

Permalink
simplify config generation + atomic removal line
Browse files Browse the repository at this point in the history
  • Loading branch information
bleepbop committed Jul 24, 2023
1 parent 2e5be0f commit 47f69ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ RUN if [ "$WIN_BUILD" = "true" ] ; then apt-get -y install mingw-w64; fi
RUN pip3 install --no-cache-dir -r requirements.txt

# Set up config file and disable atomic by default
RUN if [ -f "conf/local.yml" ]; then sed -i '/\- atomic/d' conf/local.yml; \
else sed -i '/\- atomic/d' conf/default.yml; \
python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.ensure_local_config();"; \
fi
RUN python3 -c "import app; import app.utility.config_generator; app.utility.config_generator.ensure_local_config();"; \
sed -i '/\- atomic/d' conf/local.yml;

# Install golang
RUN curl -L https://go.dev/dl/go1.17.6.linux-amd64.tar.gz -o go1.17.6.linux-amd64.tar.gz
Expand Down

0 comments on commit 47f69ee

Please sign in to comment.