sks / Dockerfile
redfernstech's picture
Update Dockerfile
9f0f60e verified
raw
history blame
829 Bytes
# Use the specified image from Docker Hub
FROM williamjackson/excalibur:0.4.3
# Set the working directory inside the container
WORKDIR /excalibur
# Create a volume for your data directory (local path on your machine)
VOLUME ["~/excalibur-data"]
# Set environment variables to define the config file path
ENV EXCALIBUR_CONFIG=/excalibur/excalibur.cfg
# Ensure the /excalibur directory and the configuration file are writable
RUN chmod -R 755 /excalibur && \
touch /excalibur/excalibur.cfg && \
chmod u+w /excalibur/excalibur.cfg
# Initialize the database (this will be run when the container starts)
CMD ["initdb"]
# Optionally, add any other necessary commands here, such as:
CMD docker pull alexeiled/docker-oracle-xe-11g
CMD docker run -v ~/excalibur-data:/excalibur excalibur-image
CMD ["excalibur", "webserver"]