Skip to content

Commit

Permalink
feat: move assets to data volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Jomik committed Feb 4, 2024
1 parent a6e6ece commit 34e6987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN npm init -y
# Move the database file to shared directory
WORKDIR /data
RUN mv /screeps/db.json /data/db.json && \
sed -i "s/db.json/\/data\/db.json/" /screeps/.screepsrc
sed -i "s/db = db.json/db = \/data\/db.json/" /screeps/.screepsrc
RUN mv /screeps/assets /data/assets && \
sed -i "s/assetdir = assets/assetdir = \/data\/assets/" /screeps/.screepsrc

WORKDIR /screeps
COPY screeps-cli.js ./bin/cli
Expand Down

0 comments on commit 34e6987

Please sign in to comment.