mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-28 04:49:08 -05:00
16 lines
390 B
Docker
16 lines
390 B
Docker
FROM nginx:alpine
|
|
|
|
# Install OpenSSL for certificate generation
|
|
RUN apk add --no-cache openssl
|
|
|
|
# Copy configuration and entrypoint script
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY entrypoint.sh /docker-entrypoint.sh
|
|
|
|
# Create SSL directory
|
|
RUN mkdir -p /etc/nginx/ssl && chmod 755 /etc/nginx/ssl \
|
|
&& chmod +x /docker-entrypoint.sh
|
|
|
|
EXPOSE 80 443
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|