removed workdir from dockerfile
This commit is contained in:
parent
0f78547a47
commit
d229150068
1 changed files with 1 additions and 4 deletions
|
@ -4,9 +4,6 @@ FROM golang:1.21-alpine AS builder
|
||||||
# Install Hugo and Git
|
# Install Hugo and Git
|
||||||
RUN apk add --no-cache hugo git
|
RUN apk add --no-cache hugo git
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy the repository contents
|
# Copy the repository contents
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
@ -20,7 +17,7 @@ RUN hugo --minify
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
# Copy the built site from builder
|
# Copy the built site from builder
|
||||||
COPY --from=builder /app/public /usr/share/nginx/html
|
COPY --from=builder /public /usr/share/nginx/html
|
||||||
|
|
||||||
# Copy custom nginx config if needed
|
# Copy custom nginx config if needed
|
||||||
# COPY nginx.conf /etc/nginx/conf.d/default.conf
|
# COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue