Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
reganmaharjan authored Apr 6, 2024
1 parent 94c442c commit 7315993
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# FROM treehouses/nginx:1.18

# RUN apk --no-cache upgrade
# RUN apk add --no-cache curl git

# WORKDIR /var/lib/nginx

# RUN rm -rf html
# # COPY ./epaath_es_oneactivity_project /var/lib/nginx/html
# RUN git clone --depth=1 --single-branch --branch with_all_activities https://GITLAB_USERNAME:GITLAB_PASSWORD@git2023.olenepal.org/regan/epaath_es_oneactivity_project.git html
# # RUN mv -f musicblocks html
# # COPY . html

# EXPOSE 80 443 3000

# CMD ["nginx", "-g", "daemon off;"]

FROM treehouses/nginx:1.18

RUN apk --no-cache upgrade
Expand All @@ -23,12 +6,10 @@ RUN apk add --no-cache curl git
WORKDIR /var/lib/nginx

RUN rm -rf html
# Assuming the 'cloned_repo' directory is your build context
COPY . html

# The next line clones the project directly, which is now handled in the GitHub Actions workflow
# COPY ./epaath_es_oneactivity_project /var/lib/nginx/html
# RUN git clone --depth=1 --single-branch --branch with_all_activities https://GITLAB_USERNAME:GITLAB_PASSWORD@git2023.olenepal.org/regan/epaath_es_oneactivity_project.git html
# If there are additional steps to move or prepare the project files, they should be adjusted to reflect the new context.
# RUN mv -f musicblocks html
# COPY . html

EXPOSE 80 443 3000

Expand Down

0 comments on commit 7315993

Please # to comment.