Remove web server references from Dockerfile
This commit is contained in:
parent
9640e0d785
commit
6546f26d52
15
Dockerfile
15
Dockerfile
@ -78,16 +78,10 @@ RUN mkdir -p /build/web/photos /build/web/accounts /build/web/auth /build/web/ca
|
|||||||
|
|
||||||
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
|
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
|
||||||
|
|
||||||
# Install necessary packages (excluding golang as we'll install it manually)
|
# Install necessary packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl git nodejs npm libsodium23 libsodium-dev pkg-config postgresql-client && \
|
apt-get install -y curl git nodejs npm libsodium23 libsodium-dev pkg-config postgresql-client && \
|
||||||
npm install -g yarn serve && \
|
npm install -g yarn serve && \
|
||||||
# Install Caddy instead of NGINX
|
|
||||||
apt-get install -y debian-keyring debian-archive-keyring apt-transport-https && \
|
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg && \
|
|
||||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y caddy && \
|
|
||||||
apt-get clean && apt-get autoremove && \
|
apt-get clean && apt-get autoremove && \
|
||||||
rm -rf /var/cache/apt /var/lib/apt/lists
|
rm -rf /var/cache/apt /var/lib/apt/lists
|
||||||
|
|
||||||
@ -143,11 +137,8 @@ ADD config.template.yaml /app/pkg/
|
|||||||
# Set proper permissions
|
# Set proper permissions
|
||||||
RUN chmod +x /app/pkg/start.sh
|
RUN chmod +x /app/pkg/start.sh
|
||||||
|
|
||||||
# Create NGINX directories
|
# Expose the API port
|
||||||
RUN mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled
|
EXPOSE 8080
|
||||||
|
|
||||||
# Expose the web port (Cloudron expects port 3080 now)
|
|
||||||
EXPOSE 3080
|
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD ["/app/pkg/start.sh"]
|
CMD ["/app/pkg/start.sh"]
|
Loading…
x
Reference in New Issue
Block a user