ci: move binaries to path
This commit is contained in:
+4
-4
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user