Skip to content

Commit e4a1569

Browse files
committed
Added makefile
1 parent db9dd67 commit e4a1569

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM alpine:3.20
22

3-
COPY sql2er-exe /app/sql2er
3+
COPY ./sql2er-exe /app/sql2er
44

5-
RUN apk add libc6-compat gmp-dev
5+
RUN apk update && \
6+
apk add --no-cache libc6-compat \
7+
&& apk add --no-cache gmp-dev
68

79
WORKDIR /app
810

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build-docker-image:
2+
- cp $(stack path --local-install-root)/bin/sql2er-exe .
3+
- docker build --no-cache . -t tusharknight8/sql2er
4+
- rm ./sql2er-exe

example/erd.svg

Lines changed: 1 addition & 1 deletion
Loading

example/test.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE TABLE orders (
44
order_id bigint not null,
55
cust_id bigint not null,
66
status text
7-
) PARTITION BY HASH (order_id);
7+
);
88

99
CREATE TABLE cities (
1010
city_id bigserial not null,

0 commit comments

Comments
 (0)