added docker support

This commit is contained in:
2024-08-05 02:06:37 +02:00
parent 04134c6f9d
commit be0c73967b
5 changed files with 84 additions and 8 deletions

24
build/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM ubuntu:latest
# Install necessary packages
RUN apt-get update && apt-get install -y \
postgresql-client \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy the binary executable and other folders
COPY acecore /app/acecore
COPY plugins/ /app/plugins/
COPY web/ /app/web/
# Set executable permissions
RUN chmod +x /app/acecore
# Expose the port
EXPOSE 443
# Command to start the application
CMD ["/app/acecore"]