-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
28 lines (22 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This is the docker file that builds the container that runs the executable compiled by
# the container built by Dockerfile.build.
FROM lacion/docker-alpine:latest
ARG GIT_COMMIT
ARG VERSION
LABEL REPO="https://github.com/jpfairbanks/featex"
LABEL GIT_COMMIT=$GIT_COMMIT
LABEL VERSION=$VERSION
# Because of https://github.com/docker/docker/issues/14914
ENV PATH=$PATH:/opt/featex/bin
WORKDIR /opt/featex/bin
COPY bin/featex /opt/featex/bin/
RUN chmod +x /opt/featex/bin/featex
# This should be mounted, but I don't know how to mount a single file.
# I think an /etc directory would be a good long term solution.
COPY ./featex_config.yaml /opt/featex/featex_config.yaml
# these directories can be either:
# 1. copied to make an image for docker hub
# 2. mounted from the host to be able to edit them.
# COPY ./sql/ /opt/featex/sql
# COPY ./templates/ /opt/featex/templates
CMD cd /opt/featex && /opt/featex/bin/featex