|
@@ -1,7 +1,7 @@
|
|
# ================================
|
|
# ================================
|
|
# Build image
|
|
# Build image
|
|
# ================================
|
|
# ================================
|
|
-FROM swift:5.3 as build
|
|
|
|
|
|
+FROM swift:5.5 as build
|
|
WORKDIR /build
|
|
WORKDIR /build
|
|
|
|
|
|
# Copy entire repo into container
|
|
# Copy entire repo into container
|
|
@@ -9,14 +9,13 @@ COPY ./app .
|
|
|
|
|
|
# Compile with optimizations
|
|
# Compile with optimizations
|
|
RUN swift build \
|
|
RUN swift build \
|
|
- --enable-test-discovery \
|
|
|
|
-c release \
|
|
-c release \
|
|
-Xswiftc -enforce-exclusivity=unchecked
|
|
-Xswiftc -enforce-exclusivity=unchecked
|
|
|
|
|
|
# ================================
|
|
# ================================
|
|
# Run image
|
|
# Run image
|
|
# ================================
|
|
# ================================
|
|
-FROM swift:5.3-slim
|
|
|
|
|
|
+FROM swift:5.5-slim
|
|
WORKDIR /run
|
|
WORKDIR /run
|
|
|
|
|
|
# Install Swift dependencies
|
|
# Install Swift dependencies
|