-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileDev
46 lines (30 loc) · 1.32 KB
/
DockerfileDev
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ffquintella/docker-aspnetcore:sdk-6.0.1
MAINTAINER Felipe Quintella <felipe@email>
LABEL version="0.8.1"
LABEL description="This image contains the adrapi api."
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
#ENV FACTER_XXX
ENV FACTER_PRE_RUN_CMD ""
ENV FACTER_EXTRA_PACKS ""
# Puppet stuff all the instalation is donne by puppet
# Just after it we clean up everthing so the end image isn't too big
RUN mkdir -p /opt/scripts
COPY cfg/puppet/manifests /etc/puppet/manifests/
COPY cfg/puppet/modules /etc/puppet/modules/
COPY start-service.sh /opt/scripts/start-service.sh
RUN chmod +x /opt/scripts/start-service.sh ; ln -s /opt/scripts/start-service.sh /usr/local/bin/start-service
#RUN chmod +x /opt/scripts/start-service.sh ; /opt/puppetlabs/puppet/bin/puppet apply -l /tmp/puppet.log --modulepath=/etc/puppet/modules /etc/puppet/manifests/base.pp ;\
# yum clean all ; rm -rf /tmp/* ; rm -rf /var/cache/* ; rm -rf /var/tmp/* ; rm -rf /var/opt/staging
RUN mkdir /app
COPY artifacts/app /app
RUN dotnet dev-certs https -q
# Aspnet webserver
EXPOSE 5000/tcp
EXPOSE 5001/tcp
WORKDIR /app
# Configurations folder, install dir
#VOLUME XXX
#CMD /opt/puppetlabs/puppet/bin/puppet apply -l /tmp/puppet.log --modulepath=/etc/puppet/modules /etc/puppet/manifests/start.pp
CMD ["/usr/local/bin/start-service"]