Skip to content

Commit

Permalink
Make data dir in docker layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Apr 2, 2024
1 parent ed16d20 commit caf81a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ with pkgs; dockerTools.buildLayeredImage {
extraCommands = ''
set -e
mkdir app && cd app
mkdir data
cp "${./.}"/*.py .
cp -r "${./.}"/alembic_ .
cp -r "${./.}"/api .
Expand Down
1 change: 0 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ let
exit 0
fi
mkdir -p data
if [ ! -d data/postgres ]; then
initdb -D data/postgres \
--no-instructions \
Expand Down

0 comments on commit caf81a8

Please sign in to comment.