mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
web: Prepare containers
This commit is contained in:
16
web/backend/Dockerfile
Normal file
16
web/backend/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Use official Julia image as base
|
||||
FROM julia:1.11
|
||||
WORKDIR /app
|
||||
|
||||
# Install project & dependencies
|
||||
COPY Project.toml /app/Backend/
|
||||
COPY src /app/Backend/src
|
||||
RUN julia --project=. -e 'using Pkg; Pkg.develop(path="Backend"); Pkg.add("HiGHS"); Pkg.precompile()'
|
||||
COPY docker/startup.jl ./
|
||||
|
||||
# Set default environment variables
|
||||
ENV UCJL_HOST="0.0.0.0"
|
||||
ENV UCJL_PORT="9000"
|
||||
|
||||
# Run the server
|
||||
CMD ["julia", "--project=.", "startup.jl"]
|
||||
Reference in New Issue
Block a user