* Use more generic docker deps. Fixes #1759
* Don't use slim
RUN cp ./target/$CARGO_BUILD_TARGET/$RUSTRELEASEDIR/lemmy_server /app/lemmy_server
# The alpine runner
-FROM alpine:3.14 as lemmy
+FROM alpine:3 as lemmy
# Install libpq for postgres
RUN apk add libpq
# syntax=docker/dockerfile:experimental
# Warning: this will not pick up migrations unless there are code changes
-FROM rust:1.51-buster as rust
+FROM rust:1 as rust
ENV HOME=/home/root
RUN --mount=type=cache,target=/app/target \
cp target/debug/lemmy_server lemmy_server
-FROM ubuntu:20.10
+FROM ubuntu:20.04
# Install libpq for postgres
RUN apt-get update -y
services:
nginx:
- image: nginx:1.17-alpine
+ image: nginx:1-alpine
ports:
- "8540:8540"
- "8550:8550"
RUN cp ./target/$CARGO_BUILD_TARGET/$RUSTRELEASEDIR/lemmy_server /app/lemmy_server
# The alpine runner
-FROM alpine:3.14 as lemmy
+FROM alpine:3 as lemmy
# Install libpq for postgres
RUN apk add libpq
-ARG RUST_BUILDER_IMAGE=rust:1.51.0-slim-buster
+ARG RUST_BUILDER_IMAGE=rust:1-slim
# Build Lemmy
FROM $RUST_BUILDER_IMAGE as builder