ci: move binaries to path

This commit is contained in:
Juan Rodriguez
2024-05-14 06:21:13 +02:00
parent abb35019f3
commit 80a91583fe
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -11,9 +11,9 @@ RUN shards install
RUN shards build --progress
FROM base AS release
COPY --from=build /usr/src/app/bin/migrate .
COPY --from=build /usr/src/app/bin/url-shortener .
COPY --from=build /usr/src/app/bin/cli .
RUN mkdir -p /usr/src/app/sqlite
COPY --from=build /usr/src/app/db db
COPY --from=build /usr/src/app/bin /usr/local/bin
EXPOSE 4000/tcp
CMD ["./url-shortener"]
CMD ["url-shortener"]
+1 -1
View File
@@ -6,4 +6,4 @@ services:
DATABASE_URL: sqlite3://./sqlite/data.db?journal_mode=wal&synchronous=normal&foreign_keys=true
APP_URL: http://0.0.0.0:4001
ports:
- 4001:4001
- 4000:4000