File size: 394 Bytes
ba14da6
 
29fe467
d53f561
b5127e7
46951bb
ba14da6
 
ad12618
 
6b43158
ad12618
b03b249
ad12618
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM dart:2.19.1 as builder
WORKDIR /app
COPY pubspec.yaml pubspec.lock ./
RUN dart pub get 
COPY . .
RUN dart compile exe bin/dart_off_server.dart -o /app/dart_off_server

# copy server file to basic image to run the app
FROM ubuntu:latest
WORKDIR /app
# RUN apk add --no-cache bash
COPY --from=builder /app/dart_off_server /app/dart_off_server
RUN ls -la
RUN pwd
CMD ["/app/dart_off_server"]