Skip to content

Commit ebad7a3

Browse files
authored
fix: support multiple architectures (#1356)
1 parent e24d699 commit ebad7a3

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Dockerfile

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM crystallang/crystal:latest
1+
FROM 84codes/crystal:latest-ubuntu-jammy
22

33
# Install Dependencies
44
ARG DEBIAN_FRONTEND=noninteractive
@@ -8,7 +8,14 @@ WORKDIR /opt/amber
88

99
# Build Amber
1010
ENV PATH /opt/amber/bin:$PATH
11-
COPY . /opt/amber
11+
12+
COPY shard.yml /opt/amber
13+
COPY shard.lock /opt/amber
14+
RUN shards install
15+
16+
COPY src /opt/amber/src
17+
COPY spec /opt/amber/spec
18+
COPY bin /opt/amber/bin
1219
RUN shards build amber
1320

14-
CMD ["crystal", "spec"]
21+
ENTRYPOINT []

bin/amber_spec

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ crystal tool format --check
99
echo "\nRunning 'crystal spec':"
1010
crystal spec
1111

12-
# Temporarily disabling due to some dependency challenges happening with granite
13-
#echo "\nRunning 'crystal spec ./spec/build_spec_granite.cr':"
14-
#crystal spec ./spec/build_spec_granite.cr
12+
echo "\nRunning 'crystal spec ./spec/build_spec_granite.cr':"
13+
crystal spec ./spec/build_spec_granite.cr

0 commit comments

Comments
 (0)