Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit dff9479

Browse files
committed
fix(docker): correct workdir and migrations
1 parent 6ad2b44 commit dff9479

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ RUN seq 1 8 | xargs -I{} mkdir -p /usr/share/man/man{} && \
2929
apt clean && \
3030
touch .env
3131

32+
WORKDIR /app
3233
COPY --from=build /out/diesel /bin/
3334
COPY --from=build /app/target/release/howtocards_server ./
35+
COPY --from=build /app/migrations ./
3436
COPY docker-entrypoint.sh ./entrypoint.sh
3537
RUN chmod +x entrypoint.sh && chmod +x howtocards_server
3638

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ until PGPASSWORD=${POSTGRES_PASSWORD} psql -h ${DATABASE_HOST} -U ${POSTGRES_USE
1010
done
1111

1212
>&2 echo "Postgres is up - executing command"
13-
cd /app && diesel migration run && exec $@
13+
diesel migration run && exec $@

0 commit comments

Comments
 (0)