Skip to content

Commit

Permalink
TRUNK-6083: Rename build target to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Jun 15, 2022
1 parent c6d7633 commit 9c1329a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

### Build Stage
FROM maven:3.8-jdk-11 as build
### Development Stage
FROM maven:3.8-jdk-11 as dev
WORKDIR /app

ENV DEPENDENCY_PLUGIN="org.apache.maven.plugins:maven-dependency-plugin:3.3.0"
Expand Down Expand Up @@ -128,7 +128,7 @@ ENV OMRS_WEBAPP_NAME="openmrs"
RUN sed -i '/Connector port="8080"/a URIEncoding="UTF-8" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"' /usr/local/tomcat/conf/server.xml

# Copy the app
COPY --from=build /app/webapp/target/openmrs.war /openmrs/distribution/openmrs_core/openmrs.war
COPY --from=dev /app/webapp/target/openmrs.war /openmrs/distribution/openmrs_core/openmrs.war

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
openmrs-core:
image: openmrs-core:dev
build:
target: build
target: dev
context: .
ports:
- "8080:8080"
Expand Down

0 comments on commit 9c1329a

Please sign in to comment.